1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-14 03:10:28 +00:00

Fix command block config not being read

This commit is contained in:
Jonathan Coates 2021-11-26 20:58:58 +00:00
parent 18d66bd727
commit 276956eed8
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -128,7 +128,7 @@ public class CommandBlockPeripheral implements IPeripheral, ICapabilityProvider
public static void onCapability( AttachCapabilitiesEvent<TileEntity> 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 );