mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
do not teleport sign text or itemframe items
This commit is contained in:
parent
c94700b496
commit
043de74563
1 changed files with 4 additions and 1 deletions
5
init.lua
5
init.lua
|
@ -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", {
|
||||||
|
|
Loading…
Add table
Reference in a new issue