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