01-09-2013, 03:08 PM
Hook branch has new features!
First, the API finally propagates the BlockMeta on block placement. Note, though, that rewriting that may have caused some errors, please test placing all kinds of blocks and report errors (best do it in the bugtracker, one issue per block type). I've tested only some more difficult code, such as doors and rails, and even those not so much.
Second, the cPluginManager::AddHook() function checks if there is a corresponding callback function in the Lua plugin, and complains into log if there isn't. Plugin authors, rejoice
Third, the Tick() callback has been renamed to OnTick() to match all the other hooks.
First, the API finally propagates the BlockMeta on block placement. Note, though, that rewriting that may have caused some errors, please test placing all kinds of blocks and report errors (best do it in the bugtracker, one issue per block type). I've tested only some more difficult code, such as doors and rails, and even those not so much.
Second, the cPluginManager::AddHook() function checks if there is a corresponding callback function in the Lua plugin, and complains into log if there isn't. Plugin authors, rejoice
Third, the Tick() callback has been renamed to OnTick() to match all the other hooks.