From 962ea68104e3d2999a182941c818d8334b240dd8 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Mon, 23 May 2022 15:11:29 -0700 Subject: [PATCH] Allow changing of static_save --- mob_meta.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mob_meta.lua b/mob_meta.lua index cb289ea..03d0f2c 100644 --- a/mob_meta.lua +++ b/mob_meta.lua @@ -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