forked from minetest-mods/technic
Fixed a bug tool workshop being able to fill up the cans
This commit is contained in:
parent
2bb3b42ca0
commit
67c0d2834d
@ -65,6 +65,10 @@ minetest.register_abm({
|
||||
if inv:is_empty("src")==false then
|
||||
srcstack = inv:get_stack("src", 1)
|
||||
src_item=srcstack:to_table()
|
||||
if (src_item["name"]=="technic:water_can" or src_item["name"]=="technic:lava_can") then
|
||||
load_step=0
|
||||
load_cost=0
|
||||
end
|
||||
local load1=tonumber((src_item["wear"]))
|
||||
if charge>load_cost then
|
||||
if load1>1 then
|
||||
|
Loading…
Reference in New Issue
Block a user