Removed HOOK_MAX and HOOK_NUM_HOOKS from Lua API.
This commit is contained in:
parent
ec741261f9
commit
29af16143e
@ -2031,8 +2031,6 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
|
||||
HOOK_HOPPER_PUSHING_ITEM = { Notes = "Called when a hopper is pushing an item into the container it is aimed at." },
|
||||
HOOK_KILLING = { Notes = "Called when an entity has just been killed. A plugin may resurrect the entity by setting its health to above zero." },
|
||||
HOOK_LOGIN = { Notes = "Called when a Login packet is sent to the client, before the client is queued for authentication." },
|
||||
HOOK_MAX = { Notes = "The maximum TypeID of a hook. Used internally by MCS to check hook type for validity." },
|
||||
HOOK_NUM_HOOKS = { Notes = "Total number of hook types MCS supports. Used internally by MCS to check hook type for validity." },
|
||||
HOOK_PLAYER_ANIMATION = { Notes = "Called when a client send the Animation packet." },
|
||||
HOOK_PLAYER_BREAKING_BLOCK = { Notes = "Called when a player is about to break a block. A plugin may cancel the event." },
|
||||
HOOK_PLAYER_BROKEN_BLOCK = { Notes = "Called after a player has broken a block." },
|
||||
|
@ -135,14 +135,15 @@ public:
|
||||
HOOK_WORLD_STARTED,
|
||||
HOOK_WORLD_TICK,
|
||||
|
||||
// tolua_end
|
||||
|
||||
// Note that if a hook type is added, it may need processing in cPlugin::CanAddHook() descendants,
|
||||
// and it definitely needs adding in cPluginLua::GetHookFnName() !
|
||||
|
||||
// Keep these two as the last items, they are used for validity checking and get their values automagically
|
||||
HOOK_NUM_HOOKS,
|
||||
HOOK_MAX = HOOK_NUM_HOOKS - 1,
|
||||
} ;
|
||||
// tolua_end
|
||||
} ; // tolua_export
|
||||
|
||||
/** Used as a callback for enumerating bound commands */
|
||||
class cCommandEnumCallback
|
||||
|
Loading…
Reference in New Issue
Block a user