From e754803f5a8ecc20a838e2a832cd1e4857858680 Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Sat, 26 Feb 2022 06:42:05 +0000 Subject: [PATCH] Fix make-all option for using the pestle and mortar on herblore secondaries --- .../game/node/entity/skill/herblore/GrindItemPlugin.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/node/entity/skill/herblore/GrindItemPlugin.kt b/Server/src/main/kotlin/rs09/game/node/entity/skill/herblore/GrindItemPlugin.kt index 4d119b1e9..352890bf0 100644 --- a/Server/src/main/kotlin/rs09/game/node/entity/skill/herblore/GrindItemPlugin.kt +++ b/Server/src/main/kotlin/rs09/game/node/entity/skill/herblore/GrindItemPlugin.kt @@ -57,6 +57,11 @@ class GrindItemPlugin : UseWithHandler(233) { return amt <= 0 } }) + + } + + override fun getAll(index: Int): Int { + return player.inventory.getAmount(event.usedItem) } } handler.open() @@ -70,4 +75,4 @@ class GrindItemPlugin : UseWithHandler(233) { */ private val ANIMATION = Animation(364) } -} \ No newline at end of file +}