mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Fixes issue #93
This commit is contained in:
@@ -163,11 +163,14 @@ end
|
||||
on :message, :item_action do |player, message|
|
||||
interface = message.interface_id
|
||||
|
||||
if interface == INVENTORY_CONTAINER || interface == SHOP_CONTAINER
|
||||
if player.open_shop == -1 || !SHOPS.key?(player.open_shop)
|
||||
message.terminate
|
||||
next
|
||||
end
|
||||
if player.open_shop == -1 || !SHOPS.key?(player.open_shop)
|
||||
message.terminate
|
||||
next
|
||||
end
|
||||
|
||||
if interface != INVENTORY_CONTAINER && interface != SHOP_CONTAINER
|
||||
message.terminate
|
||||
next
|
||||
end
|
||||
|
||||
shop = SHOPS[player.open_shop]
|
||||
|
||||
Reference in New Issue
Block a user