diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2016-12-19 09:29:17 -0300 |
---|---|---|
committer | Hugo Locurcio <hugo.l@openmailbox.org> | 2016-12-19 13:29:17 +0100 |
commit | 01b411c753697049b1f37c0f49abc1d216b432e6 (patch) | |
tree | 170910d38ede3ea57fb2eef7d08a295bbfe32463 | |
parent | 2bd998e791de154e72cf93d5e532e13d77627ce3 (diff) |
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.
-rw-r--r-- | nodes.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |