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
@@ -116,10 +116,13 @@ public abstract class AbstractPartReporting extends AEBasePart implements IPartM
@Override @Override
public void onNeighborChanged( IBlockAccess w, BlockPos pos, BlockPos neighbor ) public void onNeighborChanged( IBlockAccess w, BlockPos pos, BlockPos neighbor )
{
if( pos.offset( this.getSide().getFacing() ).equals( neighbor ) )
{ {
this.opacity = -1; this.opacity = -1;
this.getHost().markForUpdate(); this.getHost().markForUpdate();
} }
}
@Override @Override
public void readFromNBT( final NBTTagCompound data ) public void readFromNBT( final NBTTagCompound data )