generated from your-land/yl_template
#4668 no20 and no19
This commit is contained in:
parent
38c80c4a5b
commit
209140a9fe
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user