Only invoke the Lua API for mobj hooks that need it
This fixes a performance issue where, as long as at least one mobj hook of a certain type was added, the game would make 3 unneeded calls to the Lua API for every mobjs in the map, every tick.
This fixes a performance issue where, as long as at least one mobj hook of a certain type was added, the game would make 3 unneeded calls to the Lua API for every mobjs in the map, every tick.