diff --git a/mods/ITEMS/mcl_starting_inventory/init.lua b/mods/ITEMS/mcl_starting_inventory/init.lua index dfd2ba6db..137391bd3 100644 --- a/mods/ITEMS/mcl_starting_inventory/init.lua +++ b/mods/ITEMS/mcl_starting_inventory/init.lua @@ -11,7 +11,7 @@ local function mcl_log(message) end end -local give_inventory = minetest.settings:get("starting_inv_contents", false) +local give_inventory = minetest.settings:get_bool("give_starting_inv", false) local stuff_string = "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron,mcl_torches:torch 32,mcl_core:cobble 32" @@ -54,7 +54,7 @@ function mcl_starting_inventory.get_list() return mcl_starting_inventory.items end -if give_inventory then +if give_inventory and give_inventory == true then mcl_starting_inventory.add_from_csv(stuff_string) mcl_log("Okay to give inventory:\n" .. dump(mcl_starting_inventory.get_list())) end diff --git a/mods/ITEMS/mcl_starting_inventory/mod.conf b/mods/ITEMS/mcl_starting_inventory/mod.conf index de938b831..e24d4522d 100644 --- a/mods/ITEMS/mcl_starting_inventory/mod.conf +++ b/mods/ITEMS/mcl_starting_inventory/mod.conf @@ -1,3 +1,3 @@ -name = mcl_starting_inventory -description = Mineclone 2 mod, Starting Inventory -depends = mcl_core, mcl_tools, +title = mcl_starting_inventory +description = Mineclone 2 mod, Give Starting Inventory +depends = mcl_core, mcl_tools, mcl_torches diff --git a/settingtypes.txt b/settingtypes.txt index 3644a70a1..8a891ea8e 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -236,8 +236,8 @@ mcl_extended_pet_control (Extended pet control) bool true # Enable hamburgers for villagers to follow mcl_enable_hamburger (Enable Hamburger) bool true -# Starting Inventory contents (given directly to the new player) type: string -starting_inv_contents (Player Starter Pack) bool false +# Starting Inventory contents (given directly to the new player) type: bool +give_starting_inv (Player Starter Pack) bool false [Debugging] # If enabled, this will show the itemstring of an item in the description.