Fixes #3293: Only update light level if the panel-facing block changes. (#3302)

This commit is contained in:
yueh
2017-12-31 13:11:26 +01:00
committed by GitHub
parent a7a65ae39d
commit 483049f555
@@ -117,8 +117,11 @@ public abstract class AbstractPartReporting extends AEBasePart implements IPartM
@Override
public void onNeighborChanged( IBlockAccess w, BlockPos pos, BlockPos neighbor )
{
this.opacity = -1;
this.getHost().markForUpdate();
if( pos.offset( this.getSide().getFacing() ).equals( neighbor ) )
{
this.opacity = -1;
this.getHost().markForUpdate();
}
}
@Override