Fix null slotconfig for IndustrialGrinder. Closes #1810

This commit is contained in:
drcrazy 2019-08-23 12:25:53 +03:00
parent f3cdd131a0
commit 5cf7bc9107

View file

@ -83,7 +83,7 @@ public class IndustrialGrinderBlockEntity extends GenericMachineBlockEntity impl
final BlockPos downCenter = pos.offset(getFacing().getOpposite(), 2).down(); final BlockPos downCenter = pos.offset(getFacing().getOpposite(), 2).down();
multiblockChecker = new MultiblockChecker(world, downCenter); multiblockChecker = new MultiblockChecker(world, downCenter);
} }
ticksSinceLastChange++; ticksSinceLastChange++;
// Check cells input slot 2 time per second // Check cells input slot 2 time per second
if (!world.isClient && ticksSinceLastChange >= 10) { if (!world.isClient && ticksSinceLastChange >= 10) {
@ -93,12 +93,10 @@ public class IndustrialGrinderBlockEntity extends GenericMachineBlockEntity impl
} }
ticksSinceLastChange = 0; ticksSinceLastChange = 0;
} }
if (!world.isClient && getMultiBlock()) { super.tick();
super.tick();
}
} }
@Override @Override
public void fromTag(final CompoundTag tagCompound) { public void fromTag(final CompoundTag tagCompound) {
super.fromTag(tagCompound); super.fromTag(tagCompound);