diff --git a/src/main/java/com/github/halotroop/litecraft/world/gen/Dimension.java b/src/main/java/com/github/halotroop/litecraft/world/gen/Dimension.java index e3d9724..1f76fb7 100644 --- a/src/main/java/com/github/halotroop/litecraft/world/gen/Dimension.java +++ b/src/main/java/com/github/halotroop/litecraft/world/gen/Dimension.java @@ -22,7 +22,7 @@ public abstract class Dimension } public WorldModifier[] getWorldModifierArray() - { return this.worldModifiers.toArray(WorldModifier[]::new); } + { return this.worldModifiers.toArray(new WorldModifier[0]); } public abstract T createChunkGenerator(long seed); diff --git a/src/main/java/com/github/hydos/ginger/engine/elements/objects/Player.java b/src/main/java/com/github/hydos/ginger/engine/elements/objects/Player.java index 68c32c4..9a03e6f 100644 --- a/src/main/java/com/github/hydos/ginger/engine/elements/objects/Player.java +++ b/src/main/java/com/github/hydos/ginger/engine/elements/objects/Player.java @@ -19,7 +19,6 @@ public class Player extends RenderObject public void move(RelativeDirection direction) { float ry = this.getRotY(); - switch (direction) { case FORWARD: @@ -64,6 +63,5 @@ public class Player extends RenderObject upwardsSpeed += Constants.gravity.y() * Window.getTime(); isInAir = false; upwardsSpeed = 0; - // super.getPosition().y = 0; } }