From 99561c2110d49a2bc1e55be31a6037017bc0bf08 Mon Sep 17 00:00:00 2001 From: dYens 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 --- nms-patches/net/minecraft/world/level/Explosion.patch | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nms-patches/net/minecraft/world/level/Explosion.patch b/nms-patches/net/minecraft/world/level/Explosion.patch index d8539ef0f..49e4eb73c 100644 --- a/nms-patches/net/minecraft/world/level/Explosion.patch +++ b/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;