mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-08-20 12:44:07 +02:00
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
|
||||
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, {
|
||||
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
||||
visual = "upright_sprite",
|
||||
|
Loading…
Reference in New Issue
Block a user