From d170fe5d83726f14fe15d925aa371d58a38a5a55 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 1 Feb 2015 16:13:17 +1100 Subject: [PATCH] SPIGOT-506: Falling blocks are special too By: md_5 --- paper-server/nms-patches/Explosion.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-server/nms-patches/Explosion.patch b/paper-server/nms-patches/Explosion.patch index 6a240318b9..b9423fd1d9 100644 --- a/paper-server/nms-patches/Explosion.patch +++ b/paper-server/nms-patches/Explosion.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde/net/minecraft/server/Explosion.java 2015-01-28 08:50:50.364126925 +1100 -+++ src/main/java/net/minecraft/server/Explosion.java 2015-01-28 08:50:50.368126914 +1100 +--- ../work/decompile-8eb82bde/net/minecraft/server/Explosion.java 2015-02-01 16:12:57.784236937 +1100 ++++ src/main/java/net/minecraft/server/Explosion.java 2015-02-01 16:12:57.788236936 +1100 @@ -8,6 +8,12 @@ import java.util.List; import java.util.Map; @@ -60,7 +60,7 @@ + CraftEventFactory.entityDamage = source; + boolean wasDamaged = entity.damageEntity(DamageSource.explosion(this), (float) ((int) ((d13 * d13 + d13) / 2.0D * 8.0D * (double) f3 + 1.0D))); + CraftEventFactory.entityDamage = null; -+ if (!wasDamaged && !(entity instanceof EntityTNTPrimed)) { ++ if (!wasDamaged && !(entity instanceof EntityTNTPrimed || entity instanceof EntityFallingBlock)) { + continue; + } + // CraftBukkit end