Fixed entity existence verification

This commit is contained in:
Pierre-Yves Rollo 2018-12-04 18:01:36 +01:00
parent 4d8dec3b79
commit 0f514c5c89

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