From 6631f07cae35aac7089312f13987ed239f11a3c7 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 26 Dec 2018 08:00:00 +1100 Subject: [PATCH] Do not use deprecated ItemSpawnEvent constructor By: md_5 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 54a6b98d47..24e9314e0d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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;