2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java
|
|
|
|
+++ b/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java
|
|
|
|
@@ -57,8 +57,11 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
IBlockData iblockdata2 = world.getBlockState(blockposition1);
|
2016-03-12 20:52:07 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
if (iblockdata2.getMaterial() == Material.WATER && (Integer) iblockdata2.getValue(BlockFluids.LEVEL) == 0 && 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));
|
2016-03-12 20:52:07 +01:00
|
|
|
+ // CraftBukkit Start - Call EntityBlockFormEvent for Frost Walker
|
2019-04-23 04:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition1, iblockdata, entityliving)) {
|
2021-11-21 23:00:00 +01:00
|
|
|
+ world.scheduleTick(blockposition1, Blocks.FROSTED_ICE, MathHelper.nextInt(entityliving.getRandom(), 60, 120));
|
2016-03-12 20:52:07 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit End
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|