Paper/CraftBukkit-Patches/0142-Fix-explosions-not-moving-invulnerable-entities.patch
Zach Brown cab333b217 Rebase (Update) from upstream SpigotMC
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e
Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c
Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66
Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b
Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
2014-11-28 14:19:07 -06:00

26 lines
1.1 KiB
Diff

From 2bc315f6abd49680751f7809af2f96a2f871f976 Mon Sep 17 00:00:00 2001
From: Thinkofdeath <thinkofdeath@spigotmc.org>
Date: Thu, 26 Jun 2014 14:29:11 +0100
Subject: [PATCH] Fix explosions not moving invulnerable entities
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java
index 4502f68..d876a63 100644
--- a/src/main/java/net/minecraft/server/Explosion.java
+++ b/src/main/java/net/minecraft/server/Explosion.java
@@ -130,9 +130,9 @@ public class Explosion {
// CraftBukkit start
CraftEventFactory.entityDamage = source;
if (!entity.damageEntity(DamageSource.explosion(this), (float) ((int) ((d10 * d10 + d10) / 2.0D * 8.0D * (double) this.size + 1.0D)))) {
- CraftEventFactory.entityDamage = null;
- continue;
+
}
+ CraftEventFactory.entityDamage = null;
// CraftBukkit end
double d11 = EnchantmentProtection.a(entity, d10);
--
1.9.1