From 3977f6e8840f5e66ca1c28b95548f83aca08e9e6 Mon Sep 17 00:00:00 2001 From: ChimneySwift Date: Sun, 26 Jan 2020 01:48:37 +1000 Subject: [PATCH] Possibility to lose items when assigning output from the vendor storage --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3f3dbea..af69e39 100644 --- a/init.lua +++ b/init.lua @@ -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