mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
9d740b84b0
By: md_5 <git@md-5.net>
13 lines
811 B
Diff
13 lines
811 B
Diff
--- a/net/minecraft/world/level/block/BlockMagma.java
|
|
+++ b/net/minecraft/world/level/block/BlockMagma.java
|
|
@@ -23,7 +23,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);
|