call neighbourChanged on the blockstate, instead of block directly, as we should

This commit is contained in:
Xander committed 2017-12-03 18:22:23 +08:00
1 parent c372c8ee1f
commit 38c2f25e8b
1 file changed
+3 -4
@@ -784,11 +784,10 @@ public final class MekanismUtils
* @param coord neighbor to notify
* @param fromPos pos of our block that updated
*/
@SuppressWarnings("deprecation")//MOJENG
public static void notifyNeighborofChange(World world, Coord4D coord, BlockPos fromPos){
Block block1 = coord.getBlock(world);
block1.onNeighborChange(world, coord.getPos(), fromPos);
block1.neighborChanged(coord.getBlockState(world), world, coord.getPos(), block1, fromPos);
IBlockState state = coord.getBlockState(world);
state.getBlock().onNeighborChange(world, coord.getPos(), fromPos);
state.neighborChanged(world, coord.getPos(), world.getBlockState(fromPos).getBlock(), fromPos);
}
/**