1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-15 04:30:29 +00:00

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.
This commit is contained in:
Jonathan Coates 2023-03-14 09:42:53 +00:00
parent 06322feb69
commit 04fed62dad
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -200,7 +200,7 @@ public class CableBlockEntity extends BlockEntity {
public void load(CompoundTag nbt) { public void load(CompoundTag nbt) {
super.load(nbt); super.load(nbt);
// Fallback to the previous (incorrect) key // 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, ""); peripheral.read(nbt, "");
} }