Fixed entity existence verification

This commit is contained in:
Pierre-Yves Rollo 2018-12-04 18:01:36 +01:00
parent b16f9fc23b
commit 86db2d2c72

View File

@ -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",