mirror of
https://codeberg.org/Wuzzy/pride_flags.git
synced 2025-03-15 04:41:21 +00:00
Fix crash in non-MTG games
This commit is contained in:
parent
947cc219eb
commit
6c6e1d453d
1 changed files with 3 additions and 1 deletions
4
init.lua
4
init.lua
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue