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