From 0ff8a32d96537fe8036561e7c184da5dcc2fdb0a Mon Sep 17 00:00:00 2001 From: kaydeeseaz Date: Thu, 28 Nov 2024 15:14:31 +0100 Subject: [PATCH] fix placing water above height limit --- .../main/java/com/andrei1058/bedwars/listeners/BreakPlace.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/listeners/BreakPlace.java b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/listeners/BreakPlace.java index e6fbd79f0..ce1497841 100644 --- a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/listeners/BreakPlace.java +++ b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/listeners/BreakPlace.java @@ -472,7 +472,7 @@ public void onBucketEmpty(PlayerBucketEmptyEvent e) { e.setCancelled(true); return; } - if (e.getBlockClicked().getLocation().getBlockY() >= a.getConfig().getInt(ConfigPath.ARENA_CONFIGURATION_MAX_BUILD_Y)) { + if (e.getBlockClicked().getY() + 1 >= a.getConfig().getInt(ConfigPath.ARENA_CONFIGURATION_MAX_BUILD_Y)) { e.setCancelled(true); return; }