Merge pull request #12 from ChimneySwift/ChimneySwift-patch-1
Possibility to lose items when assigning output from the vendor storagemaster
commit
de60490079
2
init.lua
2
init.lua
|
@ -1339,7 +1339,7 @@ local vendor_template = {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
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
|
return 0
|
||||||
end
|
end
|
||||||
return count
|
return count
|
||||||
|
|
Loading…
Reference in New Issue