diff options
author | Bryant Mairs <bwmairs@ucsc.edu> | 2013-12-02 22:02:07 -0800 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-03 11:00:41 -0500 |
commit | ef70cbfbf22b2e8c2c11d679224b1929188bd309 (patch) | |
tree | 50f4a26bdbdbda0f29330cda85ed72f8e896f3a1 | |
parent | 37acdc77f730c7c0c095bfdd1ede7662c3cfc1ab (diff) |
Fix lava can being able to hold 16 sources
-rw-r--r-- | technic/tools/cans.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua index 44846e4..c1c6713 100644 --- a/technic/tools/cans.lua +++ b/technic/tools/cans.lua @@ -40,7 +40,7 @@ minetest.register_tool("technic:water_can", { charge = tonumber(itemstack:get_metadata()) end if node.name == "default:water_source" then - if charge + 1 < 17 then + if charge < water_can_max_load then minetest.remove_node(pointed_thing.under) charge = charge + 1 itemstack:set_metadata(tostring(charge)) @@ -89,7 +89,7 @@ minetest.register_tool("technic:lava_can", { end if node.name == "default:lava_source" then - if charge + 1 < 17 then + if charge < lava_can_max_load then minetest.remove_node(pointed_thing.under) charge = charge + 1 itemstack:set_metadata(tostring(charge)) |