From 071d19c5e05ee2391cb9715337a1a4741f7f893c Mon Sep 17 00:00:00 2001 From: Video Date: Sat, 11 Mar 2023 01:08:27 -0700 Subject: [PATCH] [COMMONS] Fixes minor bug that caused /tpr to teleport you partially into the ground Alco wouldn't stop annoying me about this. --- .../totalfreedom/totalfreedommod/command/Command_tprandom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);