@@ -11,12 +11,12 @@
|
||||
|
||||
public class ItemHanging extends Item {
|
||||
|
||||
@@ -20,6 +24,18 @@
|
||||
@@ -25,6 +29,18 @@
|
||||
|
||||
if (entityhanging != null && entityhanging.survives()) {
|
||||
if (!world.isClientSide) {
|
||||
+ // CraftBukkit start - fire HangingPlaceEvent
|
||||
+ Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity();
|
||||
+ Player who = (itemactioncontext.getEntity() == null) ? null : (Player) itemactioncontext.getEntity().getBukkitEntity();
|
||||
+ org.bukkit.block.Block blockClicked = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
+ org.bukkit.block.BlockFace blockFace = org.bukkit.craftbukkit.block.CraftBlock.notchToBlockFace(enumdirection);
|
||||
+
|
||||
@@ -27,6 +27,6 @@
|
||||
+ return EnumInteractionResult.FAIL;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
entityhanging.p();
|
||||
entityhanging.m();
|
||||
world.addEntity(entityhanging);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user