Fix duplicate in Mineclonia on_place (#11)
An itemstack must be returned to not duplicate the item.
This commit is contained in:
parent
2825e97bfd
commit
f88520a24d
1 changed files with 5 additions and 5 deletions
10
init.lua
10
init.lua
|
|
@ -268,11 +268,11 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
_mcl_armor_texture = "airtanks_chestplate_tank_three.png",
|
||||
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
if has_mcl_armor then
|
||||
mcl_armor.equip_on_use(itemstack, user, pointed_thing)
|
||||
else
|
||||
return use_airtank(itemstack, user)
|
||||
end
|
||||
if has_mcl_armor then
|
||||
return mcl_armor.equip_on_use(itemstack, user, pointed_thing)
|
||||
else
|
||||
return use_airtank(itemstack, user)
|
||||
end
|
||||
end,
|
||||
|
||||
on_secondary_use = has_mcl_armor and mcl_armor.equip_on_use,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue