forked from MTSR/moreblocks
Don't unnecessarily break on stable 0.4.14. (#62)
This uses the metal sounds when available (0.4.14-dev), or the stone sounds otherwise.
This commit is contained in:
parent
2bd998e791
commit
01b411c753
@ -11,7 +11,10 @@ local sound_wood = default.node_sound_wood_defaults()
|
||||
local sound_stone = default.node_sound_stone_defaults()
|
||||
local sound_glass = default.node_sound_glass_defaults()
|
||||
local sound_leaves = default.node_sound_leaves_defaults()
|
||||
local sound_metal = default.node_sound_metal_defaults()
|
||||
|
||||
-- Don't break on 0.4.14 and earlier.
|
||||
local sound_metal = (default.node_sound_metal_defaults
|
||||
and default.node_sound_metal_defaults() or sound_stone)
|
||||
|
||||
local function tile_tiles(name)
|
||||
local tex = "moreblocks_" ..name.. ".png"
|
||||
|
Loading…
Reference in New Issue
Block a user