mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 09:06:40 +01:00
Do not use deprecated ItemSpawnEvent constructor
This commit is contained in:
parent
9642498d24
commit
01a9959aaf
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ public class CraftEventFactory {
|
|||
org.bukkit.entity.Item entity = (org.bukkit.entity.Item) entityitem.getBukkitEntity();
|
||||
CraftServer craftServer = (CraftServer) entity.getServer();
|
||||
|
||||
ItemSpawnEvent event = new ItemSpawnEvent(entity, entity.getLocation());
|
||||
ItemSpawnEvent event = new ItemSpawnEvent(entity);
|
||||
|
||||
craftServer.getPluginManager().callEvent(event);
|
||||
return event;
|
||||
|
|
Loading…
Reference in a new issue