diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-04 18:01:36 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-04 18:01:36 +0100 |
commit | 86db2d2c72ec91a3e18775079049ed3c1ceb599a (patch) | |
tree | a4c51b9c2e296350cb27efb33e07c06514c579b8 | |
parent | b16f9fc23bbbe6f11e687245da4988d38d022f56 (diff) | |
download | display_modpack_no_craft-86db2d2c72ec91a3e18775079049ed3c1ceb599a.tar.gz display_modpack_no_craft-86db2d2c72ec91a3e18775079049ed3c1ceb599a.zip |
Fixed entity existence verification
-rw-r--r-- | display.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/display.lua b/display.lua index 53fd749..eefeac0 100644 --- a/display.lua +++ b/display.lua @@ -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", |