Merge pull request #933 from DelusionalLogic/master

Fix gate texture update
This commit is contained in:
CovertJaguar 2013-06-11 20:21:42 -07:00
commit 9f72d8b5f1

View file

@ -210,8 +210,9 @@ public class GateVanilla extends Gate {
@Override
public void startResolution() {
if (hasPulser()) {
if (hasPulser() && pulser.isActive()) {
pulser.disablePulse();
pipe.container.scheduleRenderUpdate();
}
}
@ -220,9 +221,11 @@ public class GateVanilla extends Gate {
if (action instanceof ActionEnergyPulser) {
pulser.enablePulse(count);
pipe.container.scheduleRenderUpdate();
return true;
} else if (action instanceof ActionSingleEnergyPulse) {
pulser.enableSinglePulse(count);
pipe.container.scheduleRenderUpdate();
return true;
}
return false;