1
0
Fork 0

Starting Inventory fix #3. turn off debugging in code.

Ready for testing.
This commit is contained in:
Michieal 2023-01-16 01:58:27 -05:00
parent d68667beb9
commit 88493091b6
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@
--- ---
--- Copyright notice created for the license to be valid. (MIT 3) --- Copyright notice created for the license to be valid. (MIT 3)
local DEBUG = true local DEBUG = false
local function mcl_log(message) local function mcl_log(message)
if DEBUG then if DEBUG then
@ -66,9 +66,8 @@ minetest.register_chatcommand("give_starting_inventory", {
description = "Grant yourself the starting inventory.", description = "Grant yourself the starting inventory.",
func = function(name, params) func = function(name, params)
stuff_string = "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron,mcl_torches:torch 32,mcl_core:cobble 32" stuff_string = "mcl_tools:pick_iron,mcl_tools:axe_iron,mcl_tools:shovel_iron,mcl_torches:torch 32,mcl_core:cobble 32"
mcl_log("manually giving inventory:\n" .. dump(mcl_starting_inventory.get_list())) mcl_log("Manually giving inventory:\n" .. dump(mcl_starting_inventory.get_list()))
mcl_starting_inventory.add_from_csv(stuff_string) mcl_starting_inventory.add_from_csv(stuff_string)
minetest.chat_send_player(name, "Granted Starting Inventory.") minetest.chat_send_player(name, "Granted Starting Inventory.")
return true return true
end end