Fix duplicate in Mineclonia on_place (#11)

An itemstack must be returned to not duplicate the item.
This commit is contained in:
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org 2025-03-25 21:58:33 +01:00 committed by GitHub
commit f88520a24d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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