fix nil var stepheight

* backported commit 7f1ad098704f757d873a01568267c94f587cd814
  from 7f1ad09870
main
general 2024-03-30 03:34:51 -04:00
parent cbfe800342
commit 320ca97164
1 changed files with 1 additions and 1 deletions

View File

@ -3703,7 +3703,7 @@ function mobs:register_mob(name, def)
minetest.register_entity(name, setmetatable({
stepheight = def.stepheight,
stepheight = def.stepheight or 1.1,
name = (name:find(":") and name or ":"..name),
type = def.type,
attack_type = def.attack_type,