diff --git a/build.gradle.kts b/build.gradle.kts index 14a48cf..8bd57c6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,5 +45,7 @@ tasks { } dependencies { - compileOnly("com.alttd:Galaxy-API:1.19-R0.1-SNAPSHOT") + compileOnly("com.alttd:Galaxy-API:1.20.1-R0.1-SNAPSHOT") { + isChanging = true + } } \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 79a0874..dec28fd 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,7 +4,6 @@ dependencyResolutionManagement { repositories { mavenLocal() mavenCentral() - maven("https://dev.alttd.com/snapshots") // Altitude - Galaxy maven("https://repo.destro.xyz/snapshots") // Altitude - Galaxy maven("'https://jitpack.io'") // Vault } diff --git a/src/main/java/com/alttd/playerutils/event_listeners/RotateBlockEvent.java b/src/main/java/com/alttd/playerutils/event_listeners/RotateBlockEvent.java index d2e7c39..25fefe7 100644 --- a/src/main/java/com/alttd/playerutils/event_listeners/RotateBlockEvent.java +++ b/src/main/java/com/alttd/playerutils/event_listeners/RotateBlockEvent.java @@ -120,7 +120,7 @@ public class RotateBlockEvent implements Listener { Set faces = fence.getFaces(); fence.setFace(blockFace, !faces.contains(blockFace)); - block.setBlockData(fence); + block.setBlockAndForget(fence); } private void toggleWall(Block block, BlockFace blockFace, Player player, boolean leftClick) { @@ -136,7 +136,7 @@ public class RotateBlockEvent implements Listener { if (player.isSneaking()) { VALID_FOUR_STATES.forEach(face -> wall.setHeight(face, Wall.Height.NONE)); wall.setUp(true); - block.setBlockData(wall); + block.setBlockAndForget(wall); return; } @@ -144,7 +144,7 @@ public class RotateBlockEvent implements Listener { if (wallHasNoFaces(wall)) return; wall.setUp(!wall.isUp()); - block.setBlockData(wall); + block.setBlockAndForget(wall); return; } @@ -160,7 +160,7 @@ public class RotateBlockEvent implements Listener { if (!wall.isUp() && wallHasNoFaces(wall)) { wall.setUp(true); } - block.setBlockData(wall); + block.setBlockAndForget(wall); } private boolean wallHasNoFaces(Wall wall) { @@ -186,7 +186,7 @@ public class RotateBlockEvent implements Listener { nextRotation = getPreviousRotation(stairs); else nextRotation = getNextRotation(stairs); - block.setBlockData(nextRotation); + block.setBlockAndForget(nextRotation); } private Stairs getNextRotation(Stairs stairs) {