Fixed a bug tool workshop being able to fill up the cans

This commit is contained in:
RealBadAngel 2013-01-02 02:39:42 +01:00
parent 2bb3b42ca0
commit 67c0d2834d
1 changed files with 17 additions and 13 deletions

View File

@ -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