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:
parent
18d66bd727
commit
276956eed8
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user