mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
call neighbourChanged on the blockstate, instead of block directly, as we should
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user