Changed IPart#onNeighborChanged() to add vanilla arguments (#2985)

Allows more precise checks to limit an update to the facing side.
This commit is contained in:
yueh
2017-07-29 15:45:18 +02:00
committed by GitHub
parent b72fce97db
commit bb1e191666
19 changed files with 83 additions and 43 deletions
@@ -131,7 +131,7 @@ public class BlockCableBus extends AEBaseTileBlock
@Override
public void onNeighborChange( final IBlockAccess w, final BlockPos pos, final BlockPos neighbor )
{
this.cb( w, pos ).onNeighborChanged();
this.cb( w, pos ).onNeighborChanged( w, pos, neighbor );
}
@Override
@@ -336,7 +336,7 @@ public class BlockCableBus extends AEBaseTileBlock
{
if( Platform.isServer() )
{
this.cb( world, pos ).onNeighborChanged();
this.cb( world, pos ).onNeighborChanged( world, pos, fromPos );
}
}