Improved obstacle avoidance, bug fixes

This commit is contained in:
ElCeejo 2023-01-26 14:35:09 -08:00
parent 745f7b7f30
commit e4c5abe3c9
3 changed files with 132 additions and 80 deletions

View file

@ -861,6 +861,7 @@ function mob:staticdata()
data.perm_data = self.perm_data
data.hp = self.hp or self.max_health
data.texture_no = self.texture_no or random(#self.textures)
data.mesh_no = self.mesh_no or (self.meshes and random(#self.meshes))
return minetest.serialize(data)
end