summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockMagma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockMagma.patch')
-rw-r--r--nms-patches/BlockMagma.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockMagma.patch b/nms-patches/BlockMagma.patch
index 6c73106b..75f5fbad 100644
--- a/nms-patches/BlockMagma.patch
+++ b/nms-patches/BlockMagma.patch
@@ -3,7 +3,7 @@
@@ -17,7 +17,9 @@
public void stepOn(World world, BlockPosition blockposition, Entity entity) {
- if (!entity.isFireProof() && entity instanceof EntityLiving && !EnchantmentManager.j((EntityLiving) entity)) {
+ if (!entity.isFireProof() && entity instanceof EntityLiving && !EnchantmentManager.i((EntityLiving) entity)) {
+ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit
entity.damageEntity(DamageSource.HOT_FLOOR, 1.0F);
+ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = null; // CraftBukkit