forked from mtcontrib/display_modpack
Fixed entity existence verification
This commit is contained in:
parent
b16f9fc23b
commit
86db2d2c72
|
@ -213,7 +213,7 @@ end
|
||||||
|
|
||||||
--- Creates display entity with some fields and the on_activate callback
|
--- Creates display entity with some fields and the on_activate callback
|
||||||
function display_api.register_display_entity(entity_name)
|
function display_api.register_display_entity(entity_name)
|
||||||
if not minetest.registered_entity then
|
if not minetest.registered_entities[entity_name] then
|
||||||
minetest.register_entity(':'..entity_name, {
|
minetest.register_entity(':'..entity_name, {
|
||||||
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
||||||
visual = "upright_sprite",
|
visual = "upright_sprite",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user