From 6cbdec1f15b04d46b50fefe9ed328ceb4c2a4cc7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 12 Jun 2016 10:26:48 +1000 Subject: [PATCH] SPIGOT-2381: Use custom spawnreason for dropItem --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index edeaae374b..3ee0b91ecd 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -328,7 +328,7 @@ public class CraftWorld implements World { Validate.isTrue(item.getTypeId() != 0, "Cannot drop AIR."); EntityItem entity = new EntityItem(world, loc.getX(), loc.getY(), loc.getZ(), CraftItemStack.asNMSCopy(item)); entity.pickupDelay = 10; - world.addEntity(entity); + world.addEntity(entity, SpawnReason.CUSTOM); // TODO this is inconsistent with how Entity.getBukkitEntity() works. // However, this entity is not at the moment backed by a server entity class so it may be left. return new CraftItem(world.getServer(), entity);