mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-28 22:05:01 +01:00
optimize for loop
This commit is contained in:
parent
a2f7a8eb58
commit
b303eeab21
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ public class DisplayLinkPeripheral extends SyncedPeripheral<DisplayLinkBlockEnti
|
|||
} else if (data instanceof Map<?, ?> map) {
|
||||
ObjectLuaTable table = new ObjectLuaTable(map);
|
||||
bytes = new byte[table.length()];
|
||||
for (int i = 0; i < bytes.length; i++) {
|
||||
bytes[i] = (byte) (table.getInt(i + 1) & 0xff);
|
||||
for (int i = 1; i <= bytes.length; i++) {
|
||||
bytes[i] = (byte) (table.getInt(i) & 0xff);
|
||||
}
|
||||
} else {
|
||||
throw LuaValues.badArgumentOf(args, 0, "string or table");
|
||||
|
|
Loading…
Reference in a new issue