Fix crash in non-MTG games

This commit is contained in:
Wuzzy 2022-07-26 21:43:40 +02:00
parent 947cc219eb
commit 6c6e1d453d

View file

@ -464,7 +464,9 @@ minetest.register_node( "pride_flags:upper_mast", {
end
local def = minetest.registered_nodes["pride_flags:upper_mast"]
minetest.sound_play(def.sounds.place, {pos = pos}, true)
if def and def.sounds then
minetest.sound_play(def.sounds.place, {pos = pos}, true)
end
return itemstack
end,