diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-15 05:09:34 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-15 05:09:34 +0000 |
commit | e5e81eda72af4d8af5564b6aec43ee0a72067f26 (patch) | |
tree | 89ab4853b787257928821384636691d22e52cefe | |
parent | 45cf2ae9605732dc3d6da3195b8fcc83f8972e8a (diff) | |
download | Essentials-e5e81eda72af4d8af5564b6aec43ee0a72067f26.tar Essentials-e5e81eda72af4d8af5564b6aec43ee0a72067f26.tar.gz Essentials-e5e81eda72af4d8af5564b6aec43ee0a72067f26.tar.lz Essentials-e5e81eda72af4d8af5564b6aec43ee0a72067f26.tar.xz Essentials-e5e81eda72af4d8af5564b6aec43ee0a72067f26.zip |
Make /nuke drop tnt from a more reasonable height.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnuke.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java index 19695233e..60b1e3111 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java @@ -51,7 +51,7 @@ public class Commandnuke extends EssentialsCommand { for (int z = -10; z <= 10; z += 5) { - final Location tntloc = new Location(world, loc.getBlockX() + x, world.getMaxHeight(), loc.getBlockZ() + z); + final Location tntloc = new Location(world, loc.getBlockX() + x, world.getHighestBlockYAt(loc) + 64, loc.getBlockZ() + z); final TNTPrimed tnt = world.spawn(tntloc, TNTPrimed.class); } } |