diff options
author | cheapie <no-email-for-you@example.com> | 2024-09-14 20:20:27 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-09-14 20:20:27 -0500 |
commit | 97f1f74d48b1be9d9ecfbc72900cf3d290730994 (patch) | |
tree | b96620e6fa7d2feb862b05d27d1550633601852a /init.lua | |
parent | ea3f8ad7a5ad08e74e52ab25ca966969de7e080e (diff) | |
download | plasticbox-97f1f74d48b1be9d9ecfbc72900cf3d290730994.tar plasticbox-97f1f74d48b1be9d9ecfbc72900cf3d290730994.tar.gz plasticbox-97f1f74d48b1be9d9ecfbc72900cf3d290730994.tar.bz2 plasticbox-97f1f74d48b1be9d9ecfbc72900cf3d290730994.tar.xz plasticbox-97f1f74d48b1be9d9ecfbc72900cf3d290730994.zip |
Add luacheck configuration, migrate depends.txt to mod.conf, and fix crash if default is not installedHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |