From 93b3c9612683ea49fc2ae881d20d877aff377194 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 15 Jan 2012 07:29:48 +0000 Subject: [PATCH] Don't allow explosions at the top of the world to wrap around. This fixes BUKKIT-232, thanks to wilsonsd for the PR. --- src/main/java/net/minecraft/server/Explosion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java index 7370206bae..52f95c26ad 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)); }