mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-04-30 13:51:41 -04:00
No more unknown entities
This commit is contained in:
parent
90b6871cda
commit
98ac3cd0e6
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue