Merge pull request #12 from ChimneySwift/ChimneySwift-patch-1

Possibility to lose items when assigning output from the vendor storage
master
ChimneySwift 2020-01-26 01:57:08 +10:00 committed by GitHub
commit de60490079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1339,7 +1339,7 @@ local vendor_template = {
end,
},
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
if not can_access_vendor_inv(player, pos) then
if (not can_access_vendor_inv(player, pos)) or to_list == "wanted_item" or to_list == "given_item" then
return 0
end
return count