From 50b1276339a0f2b71468e532b27a19125f2a0eea Mon Sep 17 00:00:00 2001 From: 2008Choco Date: Wed, 28 Aug 2024 09:05:13 -0500 Subject: [PATCH] Bump reach distance of creative and survival to match vanilla --- .../main/java/wtf/choco/veinminer/util/AttributeUtil.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/veinminer-bukkit/src/main/java/wtf/choco/veinminer/util/AttributeUtil.java b/veinminer-bukkit/src/main/java/wtf/choco/veinminer/util/AttributeUtil.java index 4d49634..8e98cd7 100644 --- a/veinminer-bukkit/src/main/java/wtf/choco/veinminer/util/AttributeUtil.java +++ b/veinminer-bukkit/src/main/java/wtf/choco/veinminer/util/AttributeUtil.java @@ -23,7 +23,12 @@ public static double getReachDistance(Player player) { } } - return player.getGameMode() == GameMode.CREATIVE ? 4.5 : 4; + double reachDistance = 4.5; + if (player.getGameMode() == GameMode.CREATIVE) { + reachDistance += 1; + } + + return reachDistance; } }