Update Inventory after removing supply
This commit is contained in:
parent
dd70fd660f
commit
bd17d744a5
7
init.lua
7
init.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user