From b52449ba4baf5dbe25b02fb6525365ddbbacd897 Mon Sep 17 00:00:00 2001 From: zyxkad Date: Sat, 21 Dec 2024 11:18:32 -0700 Subject: [PATCH] Revert "optimize for loop" This reverts commit b303eeab21fa86e0faeed19e140d76719f1efd03. --- .../implementation/peripherals/DisplayLinkPeripheral.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/DisplayLinkPeripheral.java b/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/DisplayLinkPeripheral.java index 3cb48c6dc..cf23be73e 100644 --- a/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/DisplayLinkPeripheral.java +++ b/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/DisplayLinkPeripheral.java @@ -70,8 +70,8 @@ public class DisplayLinkPeripheral extends SyncedPeripheral 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");