From 75e0a665ce2a45e1158a427d3f70f854f5f4d5a8 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 16 Jun 2017 18:12:21 -0400 Subject: Updated several mods for Minetest 0.4.16 castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack caverealms, coloredwood, concrete, currency, farming redo, home decor, ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory unified bricks, unified dyes, worldedit, and xban2 --- boost_cart/cart_entity.lua | 2 +- boost_cart/init.lua | 1 + boost_cart/mod.conf | 1 + boost_cart/rails.lua | 10 +++++++++- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 boost_cart/mod.conf (limited to 'boost_cart') diff --git a/boost_cart/cart_entity.lua b/boost_cart/cart_entity.lua index 1633758..4147c09 100644 --- a/boost_cart/cart_entity.lua +++ b/boost_cart/cart_entity.lua @@ -231,7 +231,7 @@ function cart_entity:on_step(dtime) local acc = nil local acc_meta = minetest.get_meta(pos):get_string("cart_acceleration") - if acc_meta == "halt" then + if acc_meta == "halt" and not self.punched then -- Stop rail vel = {x=0, y=0, z=0} acc = false diff --git a/boost_cart/init.lua b/boost_cart/init.lua index 7dd5c44..bfae5d9 100644 --- a/boost_cart/init.lua +++ b/boost_cart/init.lua @@ -9,6 +9,7 @@ boost_cart.punch_speed_max = 7 if not boost_cart.modpath then + -- For Minetest 0.4.12 and older that don't look at the "mod.conf" file error("\nWrong mod directory name! Please change it to 'boost_cart'.\n" .. "See also: http://dev.minetest.net/Installing_Mods") end diff --git a/boost_cart/mod.conf b/boost_cart/mod.conf new file mode 100644 index 0000000..7da19df --- /dev/null +++ b/boost_cart/mod.conf @@ -0,0 +1 @@ +name = boost_cart \ No newline at end of file diff --git a/boost_cart/rails.lua b/boost_cart/rails.lua index c2a58cd..a03961b 100644 --- a/boost_cart/rails.lua +++ b/boost_cart/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", tiles = { "carts_rail_straight.png", "carts_rail_curved.png", -- cgit v1.2.3