aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2018-12-04 18:01:36 +0100
committerPierre-Yves Rollo <dev@pyrollo.com>2018-12-04 18:01:36 +0100
commit86db2d2c72ec91a3e18775079049ed3c1ceb599a (patch)
treea4c51b9c2e296350cb27efb33e07c06514c579b8
parentb16f9fc23bbbe6f11e687245da4988d38d022f56 (diff)
downloaddisplay_modpack_no_craft-86db2d2c72ec91a3e18775079049ed3c1ceb599a.tar.gz
display_modpack_no_craft-86db2d2c72ec91a3e18775079049ed3c1ceb599a.zip
Fixed entity existence verification
-rw-r--r--display.lua2
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",