Allow changing of static_save

This commit is contained in:
ElCeejo 2022-05-23 15:11:29 -07:00 committed by GitHub
parent 64fc31c11a
commit 962ea68104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1245,7 +1245,9 @@ function creatura.register_mob(name, def)
def.collide_with_objects = def.collide_with_objects or false
def.visual = "mesh"
def.makes_footstep_sound = def.makes_footstep_sound or false
def.static_save = true
if def.static_save ~= false then
def.static_save = true
end
def.collisionbox = hitbox
def._creatura_mob = true