Permalink
Browse files

Lighting optimizations.

  • Loading branch information...
Ri5ux committed Nov 5, 2017
1 parent 7d27934 commit 6f0226cc7ff5b2eac03fdb5f1268ec624229979e
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/java/org/avp/tile/TileEntityLightPanel.java
@@ -17,13 +17,15 @@ public TileEntityLightPanel()
public void update()
{
super.update();
this.updateEnergyAsReceiver();
IBlockState state = world.getBlockState(this.getPos());
boolean previouslyOperational = this.isOperational();
this.updateEnergyAsReceiver();
this.world.checkLightFor(EnumSkyBlock.BLOCK, pos);
this.world.notifyBlockUpdate(pos, state, state, 3);
this.world.notifyNeighborsOfStateChange(pos, blockType);
if (previouslyOperational != this.isOperational())
{
this.world.checkLightFor(EnumSkyBlock.BLOCK, pos);
}
}
@Override

0 comments on commit 6f0226c

Please sign in to comment.