mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Use world's sea level for depth command (#3268)
This commit is contained in:
parent
02e6b5f1b3
commit
a93ca9b7bc
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue