Fix issue 2496; don't tick watermill on client side (#2498)

This commit is contained in:
Dave Smith 2021-09-15 11:40:16 -06:00 committed by GitHub
parent 8c6a0155e7
commit 9d6890946d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,10 @@ public class WaterMillBlockEntity extends PowerAcceptorBlockEntity implements IT
@Override
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
super.tick(world, pos, state, blockEntity);
if (world.isClient) {
return;
}
if (world.getTime() % 20 == 0) {
checkForWater();
}