fix lasers emitting too many network packets
This commit is contained in:
parent
bf17bd43fd
commit
ac962eb183
1 changed files with 7 additions and 5 deletions
|
@ -245,11 +245,13 @@ public class TileLaser extends TileBuildCraft implements IHasWork, IControllable
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void removeLaser() {
|
protected void removeLaser() {
|
||||||
|
if (laser.isVisible) {
|
||||||
laser.isVisible = false;
|
laser.isVisible = false;
|
||||||
// force sending the network update even if the network tracker
|
// force sending the network update even if the network tracker
|
||||||
// refuses.
|
// refuses.
|
||||||
super.sendNetworkUpdate();
|
super.sendNetworkUpdate();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendNetworkUpdate() {
|
public void sendNetworkUpdate() {
|
||||||
|
|
Loading…
Reference in a new issue