have mobs jump slightly when grown to avoid being caught in floor
This commit is contained in:
parent
5bc547b333
commit
2935d1ee5d
4
api.lua
4
api.lua
@ -28,7 +28,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20220906",
|
||||
version = "20220918",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||
}
|
||||
@ -1430,7 +1430,7 @@ function mob_class:breed()
|
||||
self.object:set_pos(pos)
|
||||
|
||||
-- jump slightly when fully grown so as not to fall into ground
|
||||
self.object:set_velocity({x = 0, y = 0.5, z = 0 })
|
||||
self.object:set_velocity({x = 0, y = 2, z = 0 })
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user