1
0
Fork 0

Fixed noted errors from Pull Request.

This commit is contained in:
Michieal 2023-01-29 13:12:24 -05:00
parent f3e840a0ff
commit 29597af738
3 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ local function mcl_log(message)
end end
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" 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 return mcl_starting_inventory.items
end end
if give_inventory then if give_inventory and give_inventory == true then
mcl_starting_inventory.add_from_csv(stuff_string) mcl_starting_inventory.add_from_csv(stuff_string)
mcl_log("Okay to give inventory:\n" .. dump(mcl_starting_inventory.get_list())) mcl_log("Okay to give inventory:\n" .. dump(mcl_starting_inventory.get_list()))
end end

View File

@ -1,3 +1,3 @@
name = mcl_starting_inventory title = mcl_starting_inventory
description = Mineclone 2 mod, Starting Inventory description = Mineclone 2 mod, Give Starting Inventory
depends = mcl_core, mcl_tools, depends = mcl_core, mcl_tools, mcl_torches

View File

@ -236,8 +236,8 @@ mcl_extended_pet_control (Extended pet control) bool true
# Enable hamburgers for villagers to follow # Enable hamburgers for villagers to follow
mcl_enable_hamburger (Enable Hamburger) bool true mcl_enable_hamburger (Enable Hamburger) bool true
# Starting Inventory contents (given directly to the new player) type: string # Starting Inventory contents (given directly to the new player) type: bool
starting_inv_contents (Player Starter Pack) bool false give_starting_inv (Player Starter Pack) bool false
[Debugging] [Debugging]
# If enabled, this will show the itemstring of an item in the description. # If enabled, this will show the itemstring of an item in the description.