From 98ac3cd0e6b32aaee0b133cc9194dbafd1def92a Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Mon, 20 Jun 2022 13:08:52 -0700 Subject: [PATCH] No more unknown entities --- spawning.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spawning.lua b/spawning.lua index e93e8ce..359013b 100644 --- a/spawning.lua +++ b/spawning.lua @@ -302,7 +302,8 @@ minetest.register_abm({ chance = 1, action = function(pos) local meta = minetest.get_meta(pos) - local name = meta:get_string("mob") + local name = meta:get_string("mob") or "" + if name == "" then minetest.remove_node(pos) return end local amount = meta:get_int("cluster") local obj if amount > 0 then @@ -350,4 +351,4 @@ minetest.register_abm({ end end end, -})]] \ No newline at end of file +})]]