Fix issue 2496; don't tick watermill on client side (#2498)
This commit is contained in:
parent
8c6a0155e7
commit
9d6890946d
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ public class WaterMillBlockEntity extends PowerAcceptorBlockEntity implements IT
|
||||||
@Override
|
@Override
|
||||||
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
|
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
|
||||||
super.tick(world, pos, state, blockEntity);
|
super.tick(world, pos, state, blockEntity);
|
||||||
|
if (world.isClient) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (world.getTime() % 20 == 0) {
|
if (world.getTime() % 20 == 0) {
|
||||||
checkForWater();
|
checkForWater();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue