diff --git a/commons/src/main/java/me/totalfreedom/totalfreedommod/command/Command_tprandom.java b/commons/src/main/java/me/totalfreedom/totalfreedommod/command/Command_tprandom.java index 858dbb57..d7109947 100644 --- a/commons/src/main/java/me/totalfreedom/totalfreedommod/command/Command_tprandom.java +++ b/commons/src/main/java/me/totalfreedom/totalfreedommod/command/Command_tprandom.java @@ -18,7 +18,7 @@ public class Command_tprandom extends FreedomCommand { int x = FUtil.randomInteger(-50000, 50000); int z = FUtil.randomInteger(-50000, 50000); - int y = playerSender.getWorld().getHighestBlockYAt(x, z); + int y = playerSender.getWorld().getHighestBlockYAt(x, z) + 1; Location location = new Location(playerSender.getLocation().getWorld(), x, y, z); PaperLib.teleportAsync(playerSender, location); msg("Poof!", ChatColor.GREEN);