Update Inventory after removing supply

This commit is contained in:
Thomas--S 2017-08-19 13:00:52 +02:00
parent dd70fd660f
commit bd17d744a5

View File

@ -9,10 +9,15 @@ function ts_workshop.register_workshop(mod, name, def)
end
ts_workshop[mod][name].enough_supply = def.enough_supply
ts_workshop[mod][name].remove_supply = def.remove_supply
ts_workshop[mod][name].remove_supply_raw = def.remove_supply
ts_workshop[mod][name].update_formspec_raw = def.update_formspec
ts_workshop[mod][name].update_inventory_raw = def.update_inventory
ts_workshop[mod][name].remove_supply = function(pos, selection)
ts_workshop[mod][name].remove_supply_raw(pos, selection)
ts_workshop[mod][name].update_inventory(pos)
end
ts_workshop[mod][name].start = function(pos)
local node = minetest.get_node(pos)
if not (mod and name) then