]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/mob/api/api_hook.lua
Make head code for mobs reuse same data
[Crafter.git] / mods / mob / api / api_hook.lua
index d1e1e94576efc99d8352135e1812b5a4bada118c..6c734bd15f570635e34831ad849fdf6b06ae1143 100644 (file)
@@ -1,3 +1,4 @@
+local minetest = minetest
 --class 
 mobs = {}
 
@@ -29,6 +30,7 @@ mob_register.initial_properties = {
        automatic_face_movement_dir = def.automatic_face_movement_dir,
        automatic_face_movement_max_rotation_per_sec = def.automatic_face_movement_max_rotation_per_sec,
        makes_footstep_sound = def.makes_footstep_sound,
+       static_save = false,
 }
 
 
@@ -166,6 +168,7 @@ mob_register.on_step = function(self, dtime,moveresult)
                self.custom_function_begin(self,dtime)
        end
        
+       flow(self)
        self.collision_detection(self)
        if self.fall_damage then
                self.fall_damage(self)