forked from minetest-mods/technic
Fix lava can being able to hold 16 sources
This commit is contained in:
parent
37acdc77f7
commit
ef70cbfbf2
@ -40,7 +40,7 @@ minetest.register_tool("technic:water_can", {
|
|||||||
charge = tonumber(itemstack:get_metadata())
|
charge = tonumber(itemstack:get_metadata())
|
||||||
end
|
end
|
||||||
if node.name == "default:water_source" then
|
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)
|
minetest.remove_node(pointed_thing.under)
|
||||||
charge = charge + 1
|
charge = charge + 1
|
||||||
itemstack:set_metadata(tostring(charge))
|
itemstack:set_metadata(tostring(charge))
|
||||||
@ -89,7 +89,7 @@ minetest.register_tool("technic:lava_can", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if node.name == "default:lava_source" then
|
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)
|
minetest.remove_node(pointed_thing.under)
|
||||||
charge = charge + 1
|
charge = charge + 1
|
||||||
itemstack:set_metadata(tostring(charge))
|
itemstack:set_metadata(tostring(charge))
|
||||||
|
Loading…
Reference in New Issue
Block a user