mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-14 14:45:40 +01:00
13 lines
731 B
Diff
13 lines
731 B
Diff
--- a/net/minecraft/server/BlockMagma.java
|
|
+++ b/net/minecraft/server/BlockMagma.java
|
|
@@ -11,7 +11,9 @@
|
|
@Override
|
|
public void stepOn(World world, BlockPosition blockposition, Entity 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
|
|
}
|
|
|
|
super.stepOn(world, blockposition, entity);
|