1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-11-15 23:30:19 +01:00

Make moreores' copper rail connect again, add metal sounds

This commit is contained in:
SmallJoker 2018-05-04 14:38:52 +02:00
parent f4c1a2ec3b
commit 3781f6d4c0
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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",