mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
e7f3ca4505
Allows us much greater control over the Spigot portion of the code and makes us more "proper" Credit to @Dmck2b for originally passing the idea along a while back
23 lines
No EOL
1.1 KiB
Diff
23 lines
No EOL
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/server/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/server/Explosion.java
|
|
@@ -0,0 +0,0 @@ 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);
|
|
|
|
--
|