From f4f91f8d656c1e7544560e642ef814dc080e4e88 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 31 Aug 2021 23:38:39 +0100 Subject: [PATCH] Fixed spelunking overflow --- .../com/willfp/ecoskills/effects/effects/EffectSpelunking.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/effects/effects/EffectSpelunking.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/effects/effects/EffectSpelunking.kt index 201a522..bed38a7 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/effects/effects/EffectSpelunking.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/effects/effects/EffectSpelunking.kt @@ -74,14 +74,14 @@ class EffectSpelunking : Effect( it }) + noRepeat.add(dropEvent) + Bukkit.getPluginManager().callEvent(dropEvent) if (dropEvent.items.isEmpty() || dropEvent.isCancelled) { return } - noRepeat.add(dropEvent) - DropQueue(player) .addItems(*dropEvent.items.map { it.itemStack }) .push()