fix lasers emitting too many network packets

This commit is contained in:
asiekierka 2014-10-31 18:50:32 +01:00
parent bf17bd43fd
commit ac962eb183

View file

@ -245,10 +245,12 @@ public class TileLaser extends TileBuildCraft implements IHasWork, IControllable
} }
protected void removeLaser() { protected void removeLaser() {
laser.isVisible = false; if (laser.isVisible) {
// force sending the network update even if the network tracker laser.isVisible = false;
// refuses. // force sending the network update even if the network tracker
super.sendNetworkUpdate(); // refuses.
super.sendNetworkUpdate();
}
} }
@Override @Override