Add moreores compatibility

This commit is contained in:
SmallJoker 2014-11-08 11:06:12 +01:00
parent b6f476db37
commit 717721c912
3 changed files with 32 additions and 27 deletions

View File

@ -1,6 +1,6 @@
Minetest mod: boost_cart
=======================
Based on the mod "carts" by PilzAdam
Based on (and fully compatible with) the mod "carts" by PilzAdam
Target: Run smoothly and do not use too much CPU
License of source code:

View File

@ -1,2 +1,3 @@
default
mesecons?
moreores?

View File

@ -15,7 +15,10 @@ minetest.register_node(":default:rail", {
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
})
-- Copper rail
if minetest.get_modpath("moreores") then
-- Moreores' copper rail
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
else
minetest.register_node(":carts:copperrail", {
description = "Copper rail",
drawtype = "raillike",
@ -41,6 +44,7 @@ minetest.register_craft({
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
}
})
end
-- Speed up