From 04fed62dad32d947d1688123e3ee6c36be8c0399 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 14 Mar 2023 09:42:53 +0000 Subject: [PATCH] Fix NBT key name from the previous commit I'd got it right originally, and then did a find-and-replace to fix the gametests, forgetting that it'd touch here too. Woops. --- .../shared/peripheral/modem/wired/CableBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java index 34ef22b77..6ba5c6ed5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java @@ -200,7 +200,7 @@ public class CableBlockEntity extends BlockEntity { public void load(CompoundTag nbt) { super.load(nbt); // Fallback to the previous (incorrect) key - peripheralAccessAllowed = nbt.getBoolean(NBT_PERIPHERAL_ENABLED) || nbt.getBoolean("PeripheralAccess"); + peripheralAccessAllowed = nbt.getBoolean(NBT_PERIPHERAL_ENABLED) || nbt.getBoolean("PeirpheralAccess"); peripheral.read(nbt, ""); }