Update api_hook for mcl_mobs definition

This commit is contained in:
Brandon 2020-07-17 17:47:52 -04:00
parent 796c45d4b3
commit 3bbe7a6826
1 changed files with 16 additions and 16 deletions

View File

@ -10,7 +10,7 @@ dofile(path.."head_code.lua")
dofile(path.."animation.lua")
dofile(path.."timers.lua")
mobs.register_mob = function(def)
mcl_mobs.register_mob = function(def)
@ -43,7 +43,7 @@ mob_register.jump_timer = 0
if def.head_bone then
mob_register.head_bone = def.head_bone
mobs.create_head_functions(def,mob_register)
mcl_mobs.create_head_functions(def,mob_register)
mob_register.debug_head_pos = def.debug_head_pos
mob_register.head_directional_offset = def.head_directional_offset
mob_register.head_height_offset = def.head_height_offset
@ -165,11 +165,11 @@ if def.custom_timer then
mob_register.custom_timer_function = def.custom_timer_function
end
mobs.create_movement_functions(def,mob_register)
mobs.create_interaction_functions(def,mob_register)
mobs.create_data_handling_functions(def,mob_register)
mobs.create_animation_functions(def,mob_register)
mobs.create_timer_functions(def,mob_register)
mcl_mobs.create_movement_functions(def,mob_register)
mcl_mobs.create_interaction_functions(def,mob_register)
mcl_mobs.create_data_handling_functions(def,mob_register)
mcl_mobs.create_animation_functions(def,mob_register)
mcl_mobs.create_timer_functions(def,mob_register)
mob_register.on_step = function(self, dtime,moveresult)