Ignore neighbor changes for comparators on the client (Vanilla behavior) (#4186)

This commit is contained in:
diesieben07 authored and LexManos committed 2017-08-01 13:38:57 -05:00
1 parent 7df003c3e7
commit b7e56a61b9
1 file changed
+1 -1
@@ -7,7 +7,7 @@
+ @Override
+ public void onNeighborChange(IBlockAccess world, BlockPos pos, BlockPos neighbor)
+ {
+ if (pos.func_177956_o() == neighbor.func_177956_o() && world instanceof World)
+ if (pos.func_177956_o() == neighbor.func_177956_o() && world instanceof World && !((World) world).field_72995_K)
+ {
+ func_189540_a(world.func_180495_p(pos), (World)world, pos, world.func_180495_p(neighbor).func_177230_c(), neighbor);
+ }