No more unknown entities

This commit is contained in:
ElCeejo 2022-06-20 13:08:52 -07:00 committed by GitHub
parent 90b6871cda
commit 98ac3cd0e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,7 +302,8 @@ minetest.register_abm({
chance = 1, chance = 1,
action = function(pos) action = function(pos)
local meta = minetest.get_meta(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 amount = meta:get_int("cluster")
local obj local obj
if amount > 0 then if amount > 0 then