mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-18 20:36:41 -04:00
Improved obstacle avoidance, bug fixes
This commit is contained in:
parent
745f7b7f30
commit
e4c5abe3c9
3 changed files with 132 additions and 80 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue