mirror of
https://github.com/minetest-mods/airtanks.git
synced 2024-12-26 06:07:28 +01:00
bugfix - double and triple tanks were returning empty singles when used up
This commit is contained in:
parent
f123f8d3b6
commit
1e85d0c309
4
init.lua
4
init.lua
@ -186,7 +186,7 @@ local function register_air_tank_2(name, desc, color, uses)
|
||||
_doc_items_longdesc = S("A pair of tanks containing compressed air."),
|
||||
_doc_items_usagehelp = S("If you're underwater and you're running out of breath, wield this item and use it to replenish 5 bubbles on your breath bar. When fully charged these tanks have @1 uses before it becomes empty.", uses),
|
||||
_airtank_uses = uses,
|
||||
_airtank_empty = "airtanks:empty_"..name.."_tank",
|
||||
_airtank_empty = "airtanks:empty_"..name.."_tank_2",
|
||||
groups = {not_repaired_by_anvil = 1, airtank = 1},
|
||||
inventory_image = "airtanks_airtank_two.png^[colorize:"..color.."^[mask:airtanks_airtank_two.png",
|
||||
wield_image = "airtanks_airtank_two.png^[colorize:"..color.."^[mask:airtanks_airtank_two.png",
|
||||
@ -243,7 +243,7 @@ local function register_air_tank_3(name, desc, color, uses)
|
||||
_doc_items_longdesc = S("A set of three tanks containing compressed air."),
|
||||
_doc_items_usagehelp = S("If you're underwater and you're running out of breath, wield this item and use it to replenish 5 bubbles on your breath bar. When fully charged these tanks have @1 uses before it becomes empty.", uses),
|
||||
_airtank_uses = uses,
|
||||
_airtank_empty = "airtanks:empty_"..name.."_tank",
|
||||
_airtank_empty = "airtanks:empty_"..name.."_tank_3",
|
||||
groups = {not_repaired_by_anvil = 1, airtank = 1},
|
||||
inventory_image = "airtanks_airtank_three.png^[colorize:"..color.."^[mask:airtanks_airtank_three.png",
|
||||
wield_image = "airtanks_airtank_three.png^[colorize:"..color.."^[mask:airtanks_airtank_three.png",
|
||||
|
Loading…
Reference in New Issue
Block a user