Do not use deprecated ItemSpawnEvent constructor

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-12-26 08:00:00 +11:00
parent fbbba56eca
commit 6631f07cae

View File

@ -447,7 +447,7 @@ public class CraftEventFactory {
org.bukkit.entity.Item entity = (org.bukkit.entity.Item) entityitem.getBukkitEntity(); org.bukkit.entity.Item entity = (org.bukkit.entity.Item) entityitem.getBukkitEntity();
CraftServer craftServer = (CraftServer) entity.getServer(); CraftServer craftServer = (CraftServer) entity.getServer();
ItemSpawnEvent event = new ItemSpawnEvent(entity, entity.getLocation()); ItemSpawnEvent event = new ItemSpawnEvent(entity);
craftServer.getPluginManager().callEvent(event); craftServer.getPluginManager().callEvent(event);
return event; return event;