forked from mtcontrib/boost_cart
Make moreores' copper rail connect again, add metal sounds
This commit is contained in:
parent
f4c1a2ec3b
commit
3781f6d4c0
@ -217,7 +217,8 @@ function boost_cart:register_rail(name, def_overwrite)
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
}
|
||||
for k, v in pairs(def_overwrite) do
|
||||
def[k] = v
|
||||
|
@ -18,6 +18,15 @@ boost_cart:register_rail(":"..regular_rail_itemname, {
|
||||
-- Moreores' copper rail
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
|
||||
|
||||
if minetest.raillike_group then
|
||||
-- Ensure that this rail uses the same connect_to_raillike
|
||||
local new_groups = minetest.registered_nodes["moreores:copper_rail"].groups
|
||||
new_groups.connect_to_raillike = minetest.raillike_group("rail")
|
||||
minetest.override_item("moreores:copper_rail", {
|
||||
groups = new_groups
|
||||
})
|
||||
end
|
||||
else
|
||||
boost_cart:register_rail(":carts:copperrail", {
|
||||
description = "Copper rail",
|
||||
|
Loading…
Reference in New Issue
Block a user