From c712cd50d7d45efe6b5d40ba76f53519994d92d6 Mon Sep 17 00:00:00 2001 From: ceikry Date: Tue, 12 Oct 2021 20:29:27 -0500 Subject: [PATCH] Vinesweeper hotfix --- .../game/content/activity/vinesweeper/VinesweeperDialogues.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/src/main/kotlin/rs09/game/content/activity/vinesweeper/VinesweeperDialogues.kt b/Server/src/main/kotlin/rs09/game/content/activity/vinesweeper/VinesweeperDialogues.kt index e561ea3ef..b9125059a 100644 --- a/Server/src/main/kotlin/rs09/game/content/activity/vinesweeper/VinesweeperDialogues.kt +++ b/Server/src/main/kotlin/rs09/game/content/activity/vinesweeper/VinesweeperDialogues.kt @@ -123,6 +123,9 @@ class BlinkinDialogue : FarmerDialogue() { 42 -> { player!!.setAttribute("runscript") { amount: Int -> val price = Item(Items.COINS_995, 10 * amount) + if(price.amount <= 0){ + return@setAttribute + } if(player!!.inventory.containsItem(price) && player!!.inventory.remove(price)) { if(player!!.inventory.add(Item(Items.OGLEROOT_12624, amount))) { npcl("There ya go! Good luck!")