Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item
Dieser Commit ist enthalten in:
Ursprung
893ad93b3e
Commit
41712eddeb
@ -593,9 +593,7 @@ public class CraftWorld implements World {
|
|||||||
EntityItem entity = new EntityItem(world, loc.getX(), loc.getY(), loc.getZ(), CraftItemStack.asNMSCopy(item));
|
EntityItem entity = new EntityItem(world, loc.getX(), loc.getY(), loc.getZ(), CraftItemStack.asNMSCopy(item));
|
||||||
entity.pickupDelay = 10;
|
entity.pickupDelay = 10;
|
||||||
world.addEntity(entity, SpawnReason.CUSTOM);
|
world.addEntity(entity, SpawnReason.CUSTOM);
|
||||||
// TODO this is inconsistent with how Entity.getBukkitEntity() works.
|
return (org.bukkit.entity.Item) entity.getBukkitEntity();
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren