Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
Fix ancient style event call in PlayerDropItemEvent
Dieser Commit ist enthalten in:
Ursprung
3f9d7f7770
Commit
8592585b9f
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
+// CraftBukkit start
|
+// CraftBukkit start
|
||||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||||
+import org.bukkit.craftbukkit.entity.CraftItem;
|
+import org.bukkit.entity.Item;
|
||||||
+import org.bukkit.entity.Player;
|
+import org.bukkit.entity.Player;
|
||||||
+import org.bukkit.event.entity.CreatureSpawnEvent;
|
+import org.bukkit.event.entity.CreatureSpawnEvent;
|
||||||
+import org.bukkit.event.entity.EntityCombustByEntityEvent;
|
+import org.bukkit.event.entity.EntityCombustByEntityEvent;
|
||||||
@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
+ // CraftBukkit start - fire PlayerDropItemEvent
|
+ // CraftBukkit start - fire PlayerDropItemEvent
|
||||||
+ Player player = (Player) this.getBukkitEntity();
|
+ Player player = (Player) this.getBukkitEntity();
|
||||||
+ CraftItem drop = new CraftItem(this.world.getServer(), entityitem);
|
+ Item drop = (Item) entityitem.getBukkitEntity();
|
||||||
+
|
+
|
||||||
+ PlayerDropItemEvent event = new PlayerDropItemEvent(player, drop);
|
+ PlayerDropItemEvent event = new PlayerDropItemEvent(player, drop);
|
||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren