Fix crash when npc close a door

Comment debug messages
This commit is contained in:
sys4-fr
2018-03-27 23:29:04 +02:00
parent dfaa904ba8
commit 97da2dc191
10 changed files with 90 additions and 87 deletions

View File

@ -260,7 +260,7 @@ function npc.occupations.register_occupation(name, def)
-- Add to the dialogue tags the "occupation name"
table.insert(dialogue.tags, name)
-- Register dialogue
npc.log("INFO", "Registering dialogue for occupation "..dump(name)..": "..dump(dialogue))
--npc.log("INFO", "Registering dialogue for occupation "..dump(name)..": "..dump(dialogue))
local key = npc.dialogue.register_dialogue(dialogue)
-- Add key to set of dialogue keys
table.insert(dialogue_keys, key)
@ -287,7 +287,7 @@ function npc.occupations.register_occupation(name, def)
-- Save the definition
npc.occupations.registered_occupations[name] = def
npc.log("INFO", "Successfully registered occupation with name: "..dump(name))
--npc.log("INFO", "Successfully registered occupation with name: "..dump(name))
end
-- This function scans all registered occupations and filter them by
@ -345,11 +345,11 @@ function npc.occupations.initialize_occupation_values(self, occupation_name)
local def = npc.occupations.registered_occupations[occupation_name]
if not def then
npc.log("WARNING", "No definition found for occupation name: "..dump(occupation_name))
--npc.log("WARNING", "No definition found for occupation name: "..dump(occupation_name))
return
end
npc.log("INFO", "Overriding NPC values using occupation '"..dump(occupation_name).."' values")
--npc.log("INFO", "Overriding NPC values using occupation '"..dump(occupation_name).."' values")
-- Initialize textures, else it will leave the current textures
if def.textures and table.getn(def.textures) > 0 then
@ -439,7 +439,7 @@ function npc.occupations.initialize_occupation_values(self, occupation_name)
end
-- Initialize properties
minetest.log("def.properties: "..dump(def.properties))
--minetest.log("def.properties: "..dump(def.properties))
if def.properties then
-- Initialize trader status
if def.properties.initial_trader_status then