diff --git a/src/gui/ElevatorCanvas.java b/src/gui/ElevatorCanvas.java index 0a16215..bddcd34 100644 --- a/src/gui/ElevatorCanvas.java +++ b/src/gui/ElevatorCanvas.java @@ -47,6 +47,7 @@ class ElevatorCanvas extends JPanel { g.setColor(Color.BLACK); } g.fillRect(0, y, WIDTH, HEIGHT); + Toolkit.getDefaultToolkit().sync(); } public void setElevatorY(int y) {