Skip to content

Commit

Permalink
Bump reach distance of creative and survival to match vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco committed Aug 28, 2024
1 parent 161f9d9 commit 50b1276
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

0 comments on commit 50b1276

Please sign in to comment.