mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-28 22:05:01 +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) {
|
} else if (data instanceof Map<?, ?> map) {
|
||||||
ObjectLuaTable table = new ObjectLuaTable(map);
|
ObjectLuaTable table = new ObjectLuaTable(map);
|
||||||
bytes = new byte[table.length()];
|
bytes = new byte[table.length()];
|
||||||
for (int i = 1; i <= bytes.length; i++) {
|
for (int i = 0; i < bytes.length; i++) {
|
||||||
bytes[i] = (byte) (table.getInt(i) & 0xff);
|
bytes[i] = (byte) (table.getInt(i + 1) & 0xff);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw LuaValues.badArgumentOf(args, 0, "string or table");
|
throw LuaValues.badArgumentOf(args, 0, "string or table");
|
||||||
|
|
Loading…
Reference in a new issue