@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/world/item/ItemHanging.java
|
||||
+++ b/net/minecraft/world/item/ItemHanging.java
|
||||
@@ -13,6 +13,11 @@
|
||||
import net.minecraft.world.item.context.ItemActionContext;
|
||||
@@ -15,6 +15,11 @@
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.level.gameevent.GameEvent;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.entity.Player;
|
||||
@@ -11,8 +11,8 @@
|
||||
+
|
||||
public class ItemHanging extends Item {
|
||||
|
||||
private final EntityTypes<? extends EntityHanging> a;
|
||||
@@ -54,6 +59,18 @@
|
||||
private final EntityTypes<? extends EntityHanging> type;
|
||||
@@ -58,6 +63,18 @@
|
||||
|
||||
if (((EntityHanging) object).survives()) {
|
||||
if (!world.isClientSide) {
|
||||
@@ -29,5 +29,5 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
((EntityHanging) object).playPlaceSound();
|
||||
world.a((Entity) entityhuman, GameEvent.ENTITY_PLACE, blockposition);
|
||||
world.addEntity((Entity) object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user