1
0
ミラー元 https://codeberg.org/tenplus1/mobs_redo.git 前回の同期 2025-11-07 18:55:23 +01:00

add falling sanity check

このコミットが含まれているのは:
TenPlus1
2020-04-07 08:36:57 +01:00
コミット 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