1
0
镜像自地址 https://codeberg.org/tenplus1/mobs_redo.git 已同步 2025-07-13 22:00:34 +02:00

add falling sanity check

这个提交包含在:
TenPlus1
2020-04-07 08:36:57 +01:00
父节点 610cef16f4
当前提交 4634288124

查看文件

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20200406",
version = "20200407",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -2535,6 +2535,9 @@ function mob_class:falling(pos)
-- floating in water (or falling)
local v = self.object:get_velocity()
-- sanity check
if not v then return end
if v.y > 0 then
-- apply gravity when moving up