diff --git a/Spigot-Server-Patches/Resolve-an-ISE-in-MagmaBlock-damage-handling.patch b/Spigot-Server-Patches/Resolve-an-ISE-in-MagmaBlock-damage-handling.patch new file mode 100644 index 0000000000..c264f8b808 --- /dev/null +++ b/Spigot-Server-Patches/Resolve-an-ISE-in-MagmaBlock-damage-handling.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jedediah Smith +Date: Sat, 11 Jun 2016 19:09:16 -0500 +Subject: [PATCH] Resolve an ISE in MagmaBlock damage handling + + +diff --git a/src/main/java/net/minecraft/server/BlockMagma.java b/src/main/java/net/minecraft/server/BlockMagma.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/BlockMagma.java ++++ b/src/main/java/net/minecraft/server/BlockMagma.java +@@ -0,0 +0,0 @@ public class BlockMagma extends Block { + + public void stepOn(World world, BlockPosition blockposition, Entity entity) { + if (!entity.isFireProof() && entity instanceof EntityLiving && !EnchantmentManager.j((EntityLiving) entity)) { ++ final org.bukkit.block.Block oldBlockDamage = org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage; // Paper + org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit ++ // Paper start ++ try { + entity.damageEntity(DamageSource.HOT_FLOOR, 1.0F); ++ } finally { ++ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = oldBlockDamage; ++ } ++ // Paper end + } + + super.stepOn(world, blockposition, entity); +-- \ No newline at end of file