From 2076d42140e3df7a23b6a95214a94f1f627347e2 Mon Sep 17 00:00:00 2001 From: Milan* Date: Mon, 18 Sep 2017 18:48:47 +0200 Subject: [PATCH] add woolsound to moreblocks registrations also fix typo --- depends.txt | 1 + init.lua | 4 +--- moreblocks.lua | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/depends.txt b/depends.txt index 54d0584..f0e0b98 100644 --- a/depends.txt +++ b/depends.txt @@ -9,6 +9,7 @@ building_blocks ? teleport_potion ? scaffolding ? moreores ? +moreblocks ? mobs_animal ? mobs_better_rat ? mobs_slimes ? diff --git a/init.lua b/init.lua index d8d7559..7e70c2b 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,7 @@ illuna = {} dofile(minetest.get_modpath("illuna").."/nodes.lua") +dofile(minetest.get_modpath("illuna").."/moreblocks.lua") dofile(minetest.get_modpath("illuna").."/crafting.lua") dofile(minetest.get_modpath("illuna").."/commands.lua") dofile(minetest.get_modpath("illuna").."/register.lua") @@ -10,9 +11,6 @@ dofile(minetest.get_modpath("illuna").."/shop.lua") dofile(minetest.get_modpath("illuna").."/stairs.lua") dofile(minetest.get_modpath("illuna").."/hotstone.lua") dofile(minetest.get_modpath("illuna").."/replacer.lua") -if minetest.get_modpath("moreblocks") then - dofile(minetest.get_modpath("illuna").."/moreblocks.lua") -end if not minetest.get_modpath("ethereal") then dofile(minetest.get_modpath("illuna").."/water.lua") end diff --git a/moreblocks.lua b/moreblocks.lua index e01de9e..9a11ed3 100644 --- a/moreblocks.lua +++ b/moreblocks.lua @@ -64,10 +64,10 @@ for i = 1, 16 do description = name.." Wool", tiles = {"wool_"..name..".png"}, groups = {oddly_breakabe_by_hand=1}, - sounds = default.node_sound_defaults(), + sounds = illuna.node_sound_wool(), }) - minetest.register_alias(name..":slab_block_1", "moreblocks:slab_wool_"..name) - minetest.register_alias(name..":slab_block_2", "moreblocks:slab_wool_"..name) + minetest.register_alias(name..":slab_block_1", "moreblocks:slab_wool_"..name.."_1") + minetest.register_alias(name..":slab_block_2", "moreblocks:slab_wool_"..name.."_2") end minetest.register_alias("wool:white_microslab", "moreblocks:slab_wool_white")