forked from mtcontrib/boost_cart
Overwrite carts:rail instead of default:rail if existing (#17)
This commit is contained in:
parent
61b19d77d9
commit
66e4613432
10
rails.lua
10
rails.lua
@ -1,4 +1,12 @@
|
|||||||
boost_cart:register_rail(":default:rail", {
|
-- Common rail registrations
|
||||||
|
|
||||||
|
local regular_rail_itemname = "default:rail"
|
||||||
|
if minetest.registered_nodes["carts:rail"] then
|
||||||
|
-- MTG Compatibility
|
||||||
|
regular_rail_itemname = "carts:rail"
|
||||||
|
end
|
||||||
|
|
||||||
|
boost_cart:register_rail(":"..regular_rail_itemname, {
|
||||||
description = "Rail",
|
description = "Rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_straight.png", "carts_rail_curved.png",
|
"carts_rail_straight.png", "carts_rail_curved.png",
|
||||||
|
Loading…
Reference in New Issue
Block a user