mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
17 lines
1.2 KiB
Diff
17 lines
1.2 KiB
Diff
--- a/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java
|
|
+++ b/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java
|
|
@@ -39,8 +39,11 @@
|
|
IBlockData iblockdata2 = world.getBlockState(blockposition1);
|
|
|
|
if (iblockdata2 == BlockIceFrost.meltsInto() && iblockdata.canSurvive(world, blockposition1) && world.isUnobstructed(iblockdata, blockposition1, VoxelShapeCollision.empty())) {
|
|
- world.setBlockAndUpdate(blockposition1, iblockdata);
|
|
- world.scheduleTick(blockposition1, Blocks.FROSTED_ICE, MathHelper.nextInt(entityliving.getRandom(), 60, 120));
|
|
+ // CraftBukkit Start - Call EntityBlockFormEvent for Frost Walker
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition1, iblockdata, entityliving)) {
|
|
+ world.scheduleTick(blockposition1, Blocks.FROSTED_ICE, MathHelper.nextInt(entityliving.getRandom(), 60, 120));
|
|
+ }
|
|
+ // CraftBukkit End
|
|
}
|
|
}
|
|
}
|