From 190c498e87fd0470c5bd84f13cd0a458e4c52b81 Mon Sep 17 00:00:00 2001 From: AverageGithub Date: Fri, 22 Mar 2024 11:22:25 +0100 Subject: [PATCH] Fix minions being taken when they shouldn't be taken --- .../artillexstudios/axminions/listeners/MinionPlaceListener.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt b/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt index 12c01e4..58b149b 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/listeners/MinionPlaceListener.kt @@ -80,7 +80,6 @@ class MinionPlaceListener : Listener { meta = item.itemMeta!! meta.persistentDataContainer.remove(Keys.PLACED) item.itemMeta = meta - item.amount = item.amount.minus(1) } return@submit } @@ -92,7 +91,6 @@ class MinionPlaceListener : Listener { meta = item.itemMeta!! meta.persistentDataContainer.remove(Keys.PLACED) item.itemMeta = meta - item.amount = item.amount.minus(1) } return@submit }