1
0

Debuggers plugin no longer performs generator / blockarea interface testing by default, but writes the current API.txt file.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1245 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-03-03 14:31:59 +00:00
parent 5d219dab28
commit 185ebc4168

View File

@ -1,7 +1,7 @@
-- Global variables -- Global variables
PLUGIN = {}; -- Reference to own plugin object PLUGIN = {}; -- Reference to own plugin object
ShouldDumpFunctions = false; -- If set to true, all available functions are logged upon plugin initialization ShouldDumpFunctions = true; -- If set to true, all available functions are logged upon plugin initialization
@ -16,7 +16,9 @@ function Initialize(Plugin)
PluginManager = cRoot:Get():GetPluginManager() PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_USING_ITEM); PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_USING_ITEM);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_TAKE_DAMAGE); PluginManager:AddHook(Plugin, cPluginManager.HOOK_TAKE_DAMAGE);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
-- Enable the following line for BlockArea / Generator interface testing:
-- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion()) LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())