give "grapple" to player if mod is present

This commit is contained in:
chmodsayshello 2022-10-16 19:30:20 +00:00
parent 7b8c790e2e
commit fbe9c20522
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ local function set_player_inventory(player)
local inv = player:get_inventory()
local hotbar = {swordstack,pickstack,gapplestack,stickstack,stonestack}
if minetest.get_modpath("grapple") then
table.insert(hotbar,ItemStack("grapple:grapple"))
end
inv:set_list("main", hotbar)
end