diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.patch b/patch-remap/og/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.patch new file mode 100644 index 0000000000..7e3647bd33 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.patch @@ -0,0 +1,16 @@ +--- a/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java ++++ b/net/minecraft/world/item/enchantment/EnchantmentFrostWalker.java +@@ -55,8 +55,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 + } + } + } |