Skip to content

Commit

Permalink
support < 0 in coloured virtual border (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
456dev committed Jul 21, 2023
1 parent b9beb4e commit 1eaff73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void showPlayer(Player player, int i, int j, int k, boolean max) {
Location l = new Location(player.getWorld(), i, j, k);
Util.getChunkAtAsync(l).thenAccept(c -> {
if (addon.getSettings().isShowParticles()) {
if (j < 0 || j > player.getWorld().getMaxHeight()) {
if (j < player.getWorld().getMinHeight() || j > player.getWorld().getMaxHeight()) {
User.getInstance(player).spawnParticle(max ? MAX_PARTICLE : PARTICLE, PARTICLE_DUST_RED, i + 0.5D, j + 0.0D, k + 0.5D);
} else {
User.getInstance(player).spawnParticle(max ? MAX_PARTICLE : PARTICLE, PARTICLE_DUST_BLUE, i + 0.5D, j + 0.0D, k + 0.5D);
Expand Down

0 comments on commit 1eaff73

Please sign in to comment.