Fixes issue #93

This commit is contained in:
atomicint
2016-01-24 03:45:17 -05:00
parent 8a91cf1241
commit 837460da39
+8 -5
View File
@@ -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]