1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 07:20:31 +01:00

Fix all brick-based moreblocks' drops

- Solves #233
This commit is contained in:
LeMagnesium 2015-08-22 11:19:37 +02:00
parent 09533d2c0b
commit 48c4c2431a
2 changed files with 30 additions and 2 deletions

View File

@ -9,7 +9,35 @@ Licensed under the zlib license. See LICENSE.md for more information.
minetest.register_alias("sweeper", "moreblocks:sweeper")
minetest.register_alias("circular_saw", "moreblocks:circular_saw")
minetest.register_alias("jungle_stick", "moreblocks:jungle_stick")
minetest.register_alias("moreblocks:panel_clay_brick", "moreblocks:panel_brick")
-- Wrong drops
-- Microblocks
for _,i in pairs({"", "_1", "_2", "_4", "_12", "_14", "_15"}) do
minetest.register_alias("moreblocks:micro_clay_brick" .. i, "moreblocks:micro_brick" .. i)
end
-- Panels
for _,i in pairs({"", "_1", "_2", "_4", "_12", "_14", "_15"}) do
minetest.register_alias("moreblocks:panel_clay_brick" .. i, "moreblocks:panel_brick" .. i)
end
-- Slabs
for _,i in pairs({"", "_1", "_2", "_quarter", "_three_quarter", "_14", "_15"}) do
minetest.register_alias("moreblocks:slab_clay_brick" .. i, "moreblocks:slab_brick" .. i)
end
-- Stairs
for _,i in pairs({"", "_outer", "_inner", "_alt", "_alt_1", "_alt_2", "_alt_4", "_half"}) do
minetest.register_alias("moreblocks:stair_clay_brick" .. i, "moreblocks:stair_brick" .. i)
end
-- Slopes
for _,i in pairs({"", "_half", "_half_raised", "_outer", "_outer_cut", "_outer_cut_half", "_outer_half", "_outer_half_raised", "_inner", "_inner_half", "_inner_half_raised"}) do
minetest.register_alias("moreblocks:slope_clay_brick" .. i, "moreblocks:slope_brick" .. i)
end
-- Old block/item replacement:
minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble")

View File

@ -45,7 +45,7 @@ for _, name in pairs(default_nodes) do
end
local drop
if type(ndef.drop) == "string" then
drop = ndef.drop:sub(9)
drop = ndef.drop:split(" ")[1]:sub(9)
end
stairsplus:register_all("moreblocks", name, nodename, {
description = ndef.description,