forked from your-land/yl_cinema
#4668 no22 and no23
This commit is contained in:
parent
c8e41105b4
commit
bd39e3585c
@ -17,7 +17,10 @@ local bigscreen_entity_definition = {
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
textures = {"yl_cinema_block_bigscreen.png^yl_cinema_icon_movie_inv.png"},
|
||||
_yl_cinema_stored_movie = ""
|
||||
_yl_cinema_stored_movie = "",
|
||||
on_blast = function()
|
||||
return false, false, {}
|
||||
end
|
||||
}
|
||||
|
||||
minetest.register_entity(bigscreen_entity_name, bigscreen_entity_definition)
|
||||
@ -136,7 +139,7 @@ local function allow_metadata_inventory_put_node(pos, listname, index, stack, pl
|
||||
end
|
||||
end
|
||||
|
||||
local function on_metadata_inventory_take_node(pos, listname, index, stack, player)
|
||||
local function allow_metadata_inventory_take_node(pos, listname, index, stack, player)
|
||||
local playername = player:get_player_name()
|
||||
if not minetest.is_protected(pos, playername) then
|
||||
return 1
|
||||
@ -199,8 +202,8 @@ local bigscreen_block_definition = {
|
||||
on_construct = on_construct_node,
|
||||
on_destruct = on_destruct_node,
|
||||
on_receive_fields = on_receive_fields_node,
|
||||
on_metadata_inventory_take = on_metadata_inventory_take_node,
|
||||
allow_metadata_inventory_put = allow_metadata_inventory_put_node,
|
||||
allow_metadata_inventory_take = allow_metadata_inventory_take_node,
|
||||
allow_metadata_inventory_move = function()
|
||||
return
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user