aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch b/patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch
new file mode 100644
index 0000000000..49050cce28
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockMagma.patch
@@ -0,0 +1,12 @@
+--- a/net/minecraft/world/level/block/BlockMagma.java
++++ b/net/minecraft/world/level/block/BlockMagma.java
+@@ -30,7 +30,9 @@
+ @Override
+ public void stepOn(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {
+ if (!entity.isSteppingCarefully() && entity instanceof EntityLiving && !EnchantmentManager.hasFrostWalker((EntityLiving) entity)) {
++ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit
+ entity.hurt(world.damageSources().hotFloor(), 1.0F);
++ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = null; // CraftBukkit
+ }
+
+ super.stepOn(world, blockposition, iblockdata, entity);