diff options
Diffstat (limited to 'nms-patches/ItemHanging.patch')
-rw-r--r-- | nms-patches/ItemHanging.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/ItemHanging.patch b/nms-patches/ItemHanging.patch index 8032ef39..4d52a77e 100644 --- a/nms-patches/ItemHanging.patch +++ b/nms-patches/ItemHanging.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/ItemHanging.java 2014-11-28 17:43:43.233707432 +0000 -+++ src/main/java/net/minecraft/server/ItemHanging.java 2014-11-28 17:38:16.000000000 +0000 +--- /home/matt/mc-dev-private//net/minecraft/server/ItemHanging.java 2015-02-26 22:40:22.827608137 +0000 ++++ src/main/java/net/minecraft/server/ItemHanging.java 2015-02-26 22:40:22.827608137 +0000 @@ -1,5 +1,11 @@ package net.minecraft.server; @@ -11,11 +11,11 @@ + public class ItemHanging extends Item { - private final Class a; + private final Class<? extends EntityHanging> a; @@ -24,6 +30,26 @@ if (entityhanging != null && entityhanging.survives()) { - if (!world.isStatic) { + if (!world.isClientSide) { + // CraftBukkit start - fire HangingPlaceEvent + Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); + org.bukkit.block.Block blockClicked = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); |