From 4278dc572874e4aa4e008761abd10647ffd3bbea Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 5 Sep 2024 00:03:13 +0300 Subject: [PATCH] Return back getting "channel" in one line --- inventory.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inventory.lua b/inventory.lua index 029ec38..4eae613 100644 --- a/inventory.lua +++ b/inventory.lua @@ -37,8 +37,7 @@ end -- to_slot: the slot number that is put into (optional). -- side: which side of the chest the action occurred (optional). local function send_message(pos, action, stack, from_slot, to_slot, side) - local meta = minetest.get_meta(pos) - local channel = meta:get_string("channel") + local channel = minetest.get_meta(pos):get_string("channel") local msg = { action = action,