mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item
By: md_5 <git@md-5.net>
This commit is contained in:
parent
95a89a0073
commit
b29a5757f9
@ -593,9 +593,7 @@ public class CraftWorld implements World {
|
||||
EntityItem entity = new EntityItem(world, loc.getX(), loc.getY(), loc.getZ(), CraftItemStack.asNMSCopy(item));
|
||||
entity.pickupDelay = 10;
|
||||
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);
|
||||
return (org.bukkit.entity.Item) entity.getBukkitEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user