summaryrefslogtreecommitdiffstats
path: root/nms-patches/EnchantmentFrostWalker.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EnchantmentFrostWalker.patch')
-rw-r--r--nms-patches/EnchantmentFrostWalker.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/nms-patches/EnchantmentFrostWalker.patch b/nms-patches/EnchantmentFrostWalker.patch
index 8b86af35..5b87723d 100644
--- a/nms-patches/EnchantmentFrostWalker.patch
+++ b/nms-patches/EnchantmentFrostWalker.patch
@@ -1,18 +1,20 @@
--- a/net/minecraft/server/EnchantmentFrostWalker.java
+++ b/net/minecraft/server/EnchantmentFrostWalker.java
-@@ -1,5 +1,8 @@
+@@ -1,6 +1,10 @@
package net.minecraft.server;
+ import java.util.Iterator;
++// CraftBukkit start
+import org.bukkit.craftbukkit.util.CraftMagicNumbers;
+import org.bukkit.event.block.EntityBlockFormEvent;
-+
- import java.util.Iterator;
++// CraftBukkit end
public class EnchantmentFrostWalker extends Enchantment {
-@@ -42,8 +45,11 @@
+
+@@ -42,8 +46,11 @@
IBlockData iblockdata2 = world.getType(blockposition_mutableblockposition1);
- if (iblockdata2.getMaterial() == Material.WATER && ((Integer) iblockdata2.get(BlockFluids.LEVEL)).intValue() == 0 && iblockdata.canPlace(world, blockposition_mutableblockposition1) && world.a(iblockdata, (BlockPosition) blockposition_mutableblockposition1)) {
+ if (iblockdata2.getMaterial() == Material.WATER && (Integer) iblockdata2.get(BlockFluids.LEVEL) == 0 && iblockdata.canPlace(world, blockposition_mutableblockposition1) && world.a(iblockdata, (BlockPosition) blockposition_mutableblockposition1)) {
- world.setTypeUpdate(blockposition_mutableblockposition1, iblockdata);
- world.J().a(blockposition_mutableblockposition1.h(), Blocks.FROSTED_ICE, MathHelper.nextInt(entityliving.getRandom(), 60, 120));
+ // CraftBukkit Start - Call EntityBlockFormEvent for Frost Walker