From 0a1df9ec02bdb1090bd2bdf83e7b85ce58fe4ece Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 7 Jul 2021 07:27:16 +1000 Subject: [PATCH] SPIGOT-6624: Explosions do not destroy blocks out of vanilla heights in custom dimensions By: dYens --- .../net/minecraft/world/level/Explosion.patch | 9 --------- 1 file changed, 9 deletions(-) diff --git a/paper-server/nms-patches/net/minecraft/world/level/Explosion.patch b/paper-server/nms-patches/net/minecraft/world/level/Explosion.patch index d8539ef0f9..49e4eb73c4 100644 --- a/paper-server/nms-patches/net/minecraft/world/level/Explosion.patch +++ b/paper-server/nms-patches/net/minecraft/world/level/Explosion.patch @@ -44,15 +44,6 @@ this.level.a(this.source, GameEvent.EXPLODE, new BlockPosition(this.x, this.y, this.z)); Set set = Sets.newHashSet(); boolean flag = true; -@@ -174,7 +188,7 @@ - f -= ((Float) optional.get() + 0.3F) * 0.3F; - } - -- if (f > 0.0F && this.damageCalculator.a(this, this.level, blockposition, iblockdata, f)) { -+ if (f > 0.0F && this.damageCalculator.a(this, this.level, blockposition, iblockdata, f) && blockposition.getY() < 256 && blockposition.getY() >= 0) { // CraftBukkit - don't wrap explosions - set.add(blockposition); - } - @@ -218,7 +232,16 @@ double d12 = (double) a(vec3d, entity); double d13 = (1.0D - d7) * d12;