From dfc96046738124400833753c1f60a9bfbe8a0d4b Mon Sep 17 00:00:00 2001 From: Syndromeramo Date: Tue, 12 Aug 2025 11:42:40 -0500 Subject: [PATCH] Porcelain cup tea now checks for level requirements properly. --- .../src/main/content/global/skill/cooking/TeaInteraction.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Server/src/main/content/global/skill/cooking/TeaInteraction.kt b/Server/src/main/content/global/skill/cooking/TeaInteraction.kt index 98ca80c60..5890ad372 100644 --- a/Server/src/main/content/global/skill/cooking/TeaInteraction.kt +++ b/Server/src/main/content/global/skill/cooking/TeaInteraction.kt @@ -105,6 +105,11 @@ class TeaInteraction : InteractionListener { } onUseWith(ITEM, teaCupPorcelainMap.keys.toIntArray(), Items.PORCELAIN_CUP_4244){player, used, with -> + if (getDynLevel(player, Skills.COOKING) < 20){ + sendDialogue(player, "You need a cooking level of 20 to make tea.") + return@onUseWith false + } + if(removeItem(player, used) && removeItem(player, with)){ addItem(player, teaCupPorcelainMap[used.id]!!) addItem(player, Items.BOWL_1923)