Fix wine of zamorak pickup interaction.

This commit is contained in:
Avi Weinstock
2021-12-30 17:22:30 +00:00
committed by Ceikry
parent 8023aa90b5
commit a5eb4e8d21
4 changed files with 8 additions and 5 deletions
@@ -9,7 +9,7 @@ import rs09.game.interaction.InteractionListener
class WineOfZamorakInteraction : InteractionListener() {
override fun defineListeners() {
on(Items.WINE_OF_ZAMORAK_245,ITEM,"take"){player, wine ->
on(Items.WINE_OF_ZAMORAK_245,GROUNDITEM,"take"){player, wine ->
if(player.location.regionId != 11574){
PickupHandler.take(player, wine as GroundItem)
return@on true
@@ -24,4 +24,4 @@ class WineOfZamorakInteraction : InteractionListener() {
return@on true
}
}
}
}