#4668 no20 and no19

This commit is contained in:
AliasAlreadyTaken 2023-06-03 03:21:54 +02:00
parent 38c80c4a5b
commit 209140a9fe

View File

@ -14,6 +14,7 @@ local bigscreen_entity_definition = {
y = screen_height
},
glow = 15,
collisionbox = {0},
physical = false,
textures = {"yl_cinema_block_bigscreen.png^yl_cinema_icon_movie_inv.png"},
_yl_cinema_stored_movie = ""
@ -117,7 +118,11 @@ end
local function on_destruct_node(pos)
local ent_obj = find_entity(pos)
ent_obj:remove()
if ent_obj then
ent_obj:remove()
else
yl_cinema.warn("Bigscreen entity not found at " .. minetest.pos_to_string(pos, 0))
end
end
local function allow_metadata_inventory_put_node(pos, listname, index, stack, player)