From a93ca9b7bc7bb8fd94e7f0c8470ab3ae8e8f89be Mon Sep 17 00:00:00 2001 From: pop4959 Date: Tue, 12 May 2020 21:05:57 -0700 Subject: [PATCH] Use world's sea level for depth command (#3268) --- .../src/com/earth2me/essentials/commands/Commanddepth.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commanddepth.java b/Essentials/src/com/earth2me/essentials/commands/Commanddepth.java index 34aa53526..84de07e10 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commanddepth.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commanddepth.java @@ -13,7 +13,7 @@ public class Commanddepth extends EssentialsCommand { @Override public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception { - final int depth = user.getLocation().getBlockY() - 63; + final int depth = user.getLocation().getBlockY() - user.getWorld().getSeaLevel(); if (depth > 0) { user.sendMessage(tl("depthAboveSea", depth)); } else if (depth < 0) {