diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 07:29:48 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 07:29:48 +0000 |
commit | 93b3c9612683ea49fc2ae881d20d877aff377194 (patch) | |
tree | c94122b3e61fd45e0f813737124af81209df330a /src | |
parent | 23adb0d02f6b75a1f7463cc905e38b4145969681 (diff) | |
download | craftbukkit-93b3c9612683ea49fc2ae881d20d877aff377194.tar craftbukkit-93b3c9612683ea49fc2ae881d20d877aff377194.tar.gz craftbukkit-93b3c9612683ea49fc2ae881d20d877aff377194.tar.lz craftbukkit-93b3c9612683ea49fc2ae881d20d877aff377194.tar.xz craftbukkit-93b3c9612683ea49fc2ae881d20d877aff377194.zip |
Don't allow explosions at the top of the world to wrap around. This fixes BUKKIT-232, thanks to wilsonsd for the PR.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/Explosion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java index 7370206b..52f95c26 100644 --- a/src/main/java/net/minecraft/server/Explosion.java +++ b/src/main/java/net/minecraft/server/Explosion.java @@ -78,7 +78,7 @@ public class Explosion { f1 -= (Block.byId[k1].a(this.source) + 0.3F) * f2; } - if (f1 > 0.0F) { + if (f1 > 0.0F && i1 < world.height && i1 >= 0) { // CraftBukkit - Don't wrap explosions this.blocks.add(new ChunkPosition(l, i1, j1)); } |