Skip to content

[WIP] Improve sound compatibility #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ minetest.register_node("lavastuff:block", {
description = S("Lava Block"),
tiles = {"lavastuff_block.png"},
is_ground_content = false,
sounds = default and default.node_sound_glass_defaults(),
sounds = default and default.node_sound_glass_defaults and default.node_sound_glass_defaults(),
groups = {cracky = 2, level = 2},
light_source = 6,
})
Expand All @@ -455,7 +455,7 @@ if minetest.get_modpath("moreblocks") then
tiles = {"lavastuff_block.png"},
groups = {cracky = 2, level = 2},
light_source = 6,
sounds = default and default.node_sound_glass_defaults(),
sounds = default and default.node_sound_glass_defaults and default.node_sound_glass_defaults(),
})
elseif minetest.get_modpath("stairs") then
stairs.register_stair_and_slab(
Expand All @@ -465,7 +465,7 @@ elseif minetest.get_modpath("stairs") then
{"lavastuff_block.png"},
S("Lava Stair"),
S("Lava Slab"),
default.node_sound_glass_defaults(),
default and default.node_sound_glass_defaults and default.node_sound_glass_defaults(),
true,
S("Inner Lava Stair"),
S("Outer Lava Stair")
Expand Down Expand Up @@ -529,7 +529,7 @@ minetest.register_node("lavastuff:lava_in_a_bottle", {
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
sounds = default and default.node_sound_glass_defaults(),
sounds = default and default.node_sound_glass_defaults and default.node_sound_glass_defaults(),
})

--
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = lavastuff
description = Adds lava tools, armor, and blocks
title = Lava Stuff
optional_depends = """
mobs, mobs_monster, 3d_armor, toolranks, moreblocks,
mobs, mobs_monster, 3d_armor, toolranks, moreblocks, sounds,
fire, stairs, vessels, default, bucket,
mcl_armor, mcl_fire, mcl_buckets, mcl_nether, mcl_potions, mcl_core, mcl_mobitems, mcl_tools,
nc_fire, nc_api_all, nc_lux, nc_optics
Expand Down