1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-09 17:30:21 +01:00

wee jump bug

This commit is contained in:
tenplus1 2024-09-17 09:43:01 +01:00
parent e8e774566b
commit 64c6085f09

View File

@ -18,7 +18,7 @@ end
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20240914", version = "20240917",
spawning_mobs = {}, spawning_mobs = {},
translate = S, translate = S,
invis = minetest.global_exists("invisibility") and invisibility or {}, invis = minetest.global_exists("invisibility") and invisibility or {},
@ -1115,7 +1115,7 @@ function mob_class:do_jump()
local vel = self.object:get_velocity() ; if not vel then return false end local vel = self.object:get_velocity() ; if not vel then return false end
-- don't jump if ordered to stand or already in mid-air or moving forwards -- don't jump if ordered to stand or already in mid-air or moving forwards
if self.state == "stand" or vel.y ~= 0 or self:get_velocity() > 0.2 then if self.state == "stand" or vel.y ~= 0 then --or self:get_velocity() > 0.2 then
return false return false
end end