From c9da5af1c30419d79aa57f6169218df545efd8fb Mon Sep 17 00:00:00 2001 From: philliam Date: Mon, 19 Jul 2021 13:05:22 -0400 Subject: [PATCH] whoopsie doopsie --- .../node/entity/skill/runecrafting/abyss/AbyssPlugin.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/node/entity/skill/runecrafting/abyss/AbyssPlugin.kt b/Server/src/main/kotlin/rs09/game/node/entity/skill/runecrafting/abyss/AbyssPlugin.kt index 34ac0cf1e..d3342ea4a 100644 --- a/Server/src/main/kotlin/rs09/game/node/entity/skill/runecrafting/abyss/AbyssPlugin.kt +++ b/Server/src/main/kotlin/rs09/game/node/entity/skill/runecrafting/abyss/AbyssPlugin.kt @@ -26,8 +26,9 @@ import rs09.game.world.GameWorld */ class AbyssPlugin : InteractionListener() { - val OBSTACLE = AbbysalObstacle.values().filter { it != AbbysalObstacle.MINE }.map { it.option }.toTypedArray() + val OBSTACLE = AbbysalObstacle.values().filter { it != AbbysalObstacle.MINE && it != AbbysalObstacle.SQUEEZE }.map { it.option }.toTypedArray() val miningObstacle = 7158 + val agilityObstacle = 7164 override fun defineListeners() { definePlugin(AbyssalNPC()) @@ -56,6 +57,11 @@ class AbyssPlugin : InteractionListener() { obstacle!!.handle(player, node as Scenery) return@on true } + on(agilityObstacle, SCENERY, "squeeze-through"){ player, node -> + val obstacle = AbbysalObstacle.forObject(node as Scenery) + obstacle!!.handle(player, node as Scenery) + return@on true + } }