summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 1b4fe18..8ff6bba 100644
--- a/init.lua
+++ b/init.lua
@@ -3,7 +3,7 @@ minetest.register_node("plasticbox:plasticbox", {
tiles = {"plasticbox_white.png"},
is_ground_content = false,
groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, ud_param2_colorable = 1},
- sounds = default.node_sound_stone_defaults(),
+ sounds = minetest.global_exists("default") and default.node_sound_stone_defaults(),
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
on_construct = unifieddyes.on_construct,
@@ -15,7 +15,7 @@ if minetest.global_exists("stairsplus") then
description = "Plastic",
tiles = {"plasticbox_white.png"},
groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1},
- sounds = default.node_sound_stone_defaults(),
+ sounds = minetest.global_exists("default") and default.node_sound_stone_defaults(),
})
end