summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-15 05:09:34 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-15 05:09:34 +0000
commit09fdd20de3f5f32cc557a3d05f3a709f4fccafd5 (patch)
treef52b243155f1da9a6e668dab4f7189a2151b39a4 /Essentials/src/com/earth2me/essentials/commands/Commandnuke.java
parent3f53aa0efee35fa04b8989eed34f2783affb2311 (diff)
downloadEssentials-09fdd20de3f5f32cc557a3d05f3a709f4fccafd5.tar
Essentials-09fdd20de3f5f32cc557a3d05f3a709f4fccafd5.tar.gz
Essentials-09fdd20de3f5f32cc557a3d05f3a709f4fccafd5.tar.lz
Essentials-09fdd20de3f5f32cc557a3d05f3a709f4fccafd5.tar.xz
Essentials-09fdd20de3f5f32cc557a3d05f3a709f4fccafd5.zip
Make /nuke drop tnt from a more reasonable height.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandnuke.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandnuke.java2
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);
}
}