diff --git a/src/main/java/de/studiocode/invgui/animation/impl/HorizontalSnakeAnimation.java b/src/main/java/de/studiocode/invgui/animation/impl/HorizontalSnakeAnimation.java index c8916f7..f6459fa 100644 --- a/src/main/java/de/studiocode/invgui/animation/impl/HorizontalSnakeAnimation.java +++ b/src/main/java/de/studiocode/invgui/animation/impl/HorizontalSnakeAnimation.java @@ -20,7 +20,6 @@ public class HorizontalSnakeAnimation extends SoundAnimation { if (left) { if (x <= 0) { y++; - x = 0; left = false; } else x--; } else { diff --git a/src/main/java/de/studiocode/invgui/animation/impl/VerticalSnakeAnimation.java b/src/main/java/de/studiocode/invgui/animation/impl/VerticalSnakeAnimation.java index deddc72..a6b3037 100644 --- a/src/main/java/de/studiocode/invgui/animation/impl/VerticalSnakeAnimation.java +++ b/src/main/java/de/studiocode/invgui/animation/impl/VerticalSnakeAnimation.java @@ -20,7 +20,6 @@ public class VerticalSnakeAnimation extends SoundAnimation { if (up) { if (y <= 0) { x++; - y = 0; up = false; } else y--; } else {