Open Gates now handle boxes visually.

This commit is contained in:
ericnerdo 2016-05-14 20:31:55 +02:00
parent 1aa6d3b837
commit 743686aa8e

View File

@ -12,8 +12,11 @@ public class GateDrawer extends AbstractDrawer {
@Override @Override
public void draw() throws IOException { public void draw() throws IOException {
if(gate.isOpen()) if(gate.isOpen()) {
changeImage("OpenGate.png"); if(gate.hasBox())
changeImage("OpenGate_Box.png");
changeImage("OpenGate.png");
}
else else
changeImage("Gate.png"); changeImage("Gate.png");
} }