mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-12-05 02:33:49 +01:00
Removed redundant minetest.get_meta(pos)
This commit is contained in:
parent
aabf7ec575
commit
dcb25cbe2f
@ -127,8 +127,9 @@ minetest.register_node("digilines_inventory:chest", {
|
||||
minetest.log("action", player:get_player_name().." puts stuff into chest at "..minetest.pos_to_string(pos))
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
local channel = minetest.get_meta(pos):get_string("channel")
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
local meta = minetest.get_meta(pos)
|
||||
local channel = meta:get_string("channel")
|
||||
local inv = meta:get_inventory()
|
||||
if inv:is_empty(listname) then
|
||||
sendMessage(pos, "empty", channel)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user