fix nil var stepheight
* backported commit 7f1ad098704f757d873a01568267c94f587cd814
from 7f1ad09870
This commit is contained in:
parent
cbfe800342
commit
320ca97164
2
api.lua
2
api.lua
@ -3703,7 +3703,7 @@ function mobs:register_mob(name, def)
|
|||||||
|
|
||||||
minetest.register_entity(name, setmetatable({
|
minetest.register_entity(name, setmetatable({
|
||||||
|
|
||||||
stepheight = def.stepheight,
|
stepheight = def.stepheight or 1.1,
|
||||||
name = (name:find(":") and name or ":"..name),
|
name = (name:find(":") and name or ":"..name),
|
||||||
type = def.type,
|
type = def.type,
|
||||||
attack_type = def.attack_type,
|
attack_type = def.attack_type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user