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| 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]