mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
parent
b303eeab21
commit
b52449ba4b
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 = 1; i <= bytes.length; i++) {
|
||||
bytes[i] = (byte) (table.getInt(i) & 0xff);
|
||||
for (int i = 0; i < bytes.length; i++) {
|
||||
bytes[i] = (byte) (table.getInt(i + 1) & 0xff);
|
||||
}
|
||||
} else {
|
||||
throw LuaValues.badArgumentOf(args, 0, "string or table");
|
||||
|
|
Loading…
Reference in a new issue