From 276956eed8520e11848e3b610d012805e3f62926 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Fri, 26 Nov 2021 20:58:58 +0000 Subject: [PATCH] Fix command block config not being read --- .../shared/peripheral/commandblock/CommandBlockPeripheral.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java index 350a60119..051938fbd 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java @@ -128,7 +128,7 @@ public class CommandBlockPeripheral implements IPeripheral, ICapabilityProvider public static void onCapability( AttachCapabilitiesEvent event ) { TileEntity tile = event.getObject(); - if( tile instanceof CommandBlockTileEntity ) + if( ComputerCraft.enableCommandBlock && tile instanceof CommandBlockTileEntity ) { CommandBlockPeripheral peripheral = new CommandBlockPeripheral( (CommandBlockTileEntity) tile ); event.addCapability( CAP_ID, peripheral );