do not teleport sign text or itemframe items

This commit is contained in:
TenPlus1 2018-04-29 18:05:38 +01:00
parent c94700b496
commit 043de74563

View file

@ -443,7 +443,10 @@ minetest.register_abm({
for n = 1, #objs do 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 -- play sound on portal end
minetest.sound_play("portal_close", { minetest.sound_play("portal_close", {