give "grapple" to player if mod is present
This commit is contained in:
parent
7b8c790e2e
commit
fbe9c20522
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue