mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
12 lines
801 B
Diff
12 lines
801 B
Diff
--- a/net/minecraft/world/level/block/BlockMagma.java
|
|
+++ b/net/minecraft/world/level/block/BlockMagma.java
|
|
@@ -29,7 +29,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(DamageSource.HOT_FLOOR, 1.0F);
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = null; // CraftBukkit
|
|
}
|
|
|
|
super.stepOn(world, blockposition, iblockdata, entity);
|