Fix null slotconfig for IndustrialGrinder. Closes #1810
This commit is contained in:
parent
f3cdd131a0
commit
5cf7bc9107
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue