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
2
init.lua
2
init.lua
|
|
@ -269,7 +269,7 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
if has_mcl_armor then
|
||||
mcl_armor.equip_on_use(itemstack, user, pointed_thing)
|
||||
return mcl_armor.equip_on_use(itemstack, user, pointed_thing)
|
||||
else
|
||||
return use_airtank(itemstack, user)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue