From 043de745638a8e81534f24584e403d0c352602d5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 29 Apr 2018 18:05:38 +0100 Subject: [PATCH] do not teleport sign text or itemframe items --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 24a1cc2..50f4c4a 100644 --- a/init.lua +++ b/init.lua @@ -443,7 +443,10 @@ minetest.register_abm({ for n = 1, #objs do - if objs[n] then + local item = objs[n] and objs[n]:get_luaentity() + and objs[n]:get_luaentity().name or "" + + if item ~= "itemframes:item" and item ~= "signs:text" then -- play sound on portal end minetest.sound_play("portal_close", {