From 06561c5387c00a2afef3fffd7104ca2f28e53c6b Mon Sep 17 00:00:00 2001 From: 0ft3n Date: Tue, 18 Jan 2022 02:00:10 +0300 Subject: [PATCH] Removed unneeded event call --- .../com/willfp/eco/internal/drops/impl/EcoDropQueue.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/drops/impl/EcoDropQueue.kt b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/drops/impl/EcoDropQueue.kt index 2927beb6..93c872f1 100644 --- a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/drops/impl/EcoDropQueue.kt +++ b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/drops/impl/EcoDropQueue.kt @@ -73,12 +73,10 @@ open class EcoDropQueue(val player: Player) : InternalDropQueue { world.dropItem(location, drop!!).velocity = Vector() } if (xp > 0) { - val event = PlayerExpChangeEvent(player, xp) - Bukkit.getPluginManager().callEvent(event) val orb = world.spawnEntity(player.location.add(0.0, 0.2, 0.0), EntityType.EXPERIENCE_ORB) as ExperienceOrb orb.velocity = Vector(0, 0, 0) - orb.experience = event.amount + orb.experience = xp } } else { for (drop in items) { @@ -94,4 +92,4 @@ open class EcoDropQueue(val player: Player) : InternalDropQueue { init { location = player.location } -} \ No newline at end of file +}