From 36343920fda55e717bc0abcf4a995405bbca143a Mon Sep 17 00:00:00 2001 From: FluxCapacitor2 <31071265+FluxCapacitor2@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:28:33 -0400 Subject: [PATCH] Update Minestom to latest version --- build.gradle.kts | 4 ++-- .../projectiles/entities/ShulkerBulletProjectile.java | 6 +++--- src/test/java/Main.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3ad31ef..6d85569 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -65,8 +65,8 @@ dependencies { testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:6.0.2") testRuntimeOnly("org.junit.platform:junit-platform-launcher:6.0.2") - compileOnly("net.minestom:minestom:2026.01.01-1.21.11") - testImplementation("net.minestom:minestom:2026.01.01-1.21.11") + compileOnly("net.minestom:minestom:2026.08.28-26.2") + testImplementation("net.minestom:minestom:2026.08.28-26.2") } tasks.getByName("test") { diff --git a/src/main/java/ca/atlasengine/projectiles/entities/ShulkerBulletProjectile.java b/src/main/java/ca/atlasengine/projectiles/entities/ShulkerBulletProjectile.java index a7651c1..ccfeff5 100644 --- a/src/main/java/ca/atlasengine/projectiles/entities/ShulkerBulletProjectile.java +++ b/src/main/java/ca/atlasengine/projectiles/entities/ShulkerBulletProjectile.java @@ -78,7 +78,7 @@ private boolean shouldSelectNewDirection() { if (currentDirection == null) return false; Point nextBlock = getPosition().add(currentDirection.vec()); - if (!getInstance().getBlock(nextBlock).isAir()) return true; + if (!getInstance().getBlock(nextBlock).air()) return true; int currentX = getPosition().blockX(); int currentY = getPosition().blockY(); @@ -125,7 +125,7 @@ private void selectNextMoveDirection(Axis avoidedAxis) { if (choices.isEmpty()) { List openDirections = new ArrayList<>(6); for (Direction direction : Direction.values()) { - if (getInstance().getBlock(getPosition().add(direction.vec())).isAir()) { + if (getInstance().getBlock(getPosition().add(direction.vec())).air()) { openDirections.add(direction); } } @@ -146,7 +146,7 @@ private void addChoice(List choices, Axis avoidedAxis, Axis axis, int current, int destination, Direction negative, Direction positive) { if (avoidedAxis == axis || current == destination) return; Direction direction = current < destination ? positive : negative; - if (getInstance().getBlock(getPosition().add(direction.vec())).isAir()) { + if (getInstance().getBlock(getPosition().add(direction.vec())).air()) { choices.add(direction); } } diff --git a/src/test/java/Main.java b/src/test/java/Main.java index aff376c..1dbad63 100644 --- a/src/test/java/Main.java +++ b/src/test/java/Main.java @@ -36,7 +36,7 @@ public static void main(String[] args) { lobby.setChunkSupplier(LightingChunk::new); lobby.enableAutoChunkLoad(true); lobby.setGenerator(unit -> unit.modifier().fillHeight(0, 1, Block.STONE)); - lobby.setTimeRate(0); + lobby.defaultClock().pause(); instanceManager.registerInstance(lobby); Entity zombie = new LivingEntity(EntityType.ZOMBIE);