1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-25 10:20:19 +01:00

Re-add groups to the powerrail and brakerail

Accidentally removed in a7fd733819
This commit is contained in:
Craig Davison 2015-06-24 21:07:40 +01:00
parent d58f9930d1
commit afb52ba3b4

View File

@ -40,7 +40,8 @@ end
boost_cart:register_rail(":carts:powerrail", { boost_cart:register_rail(":carts:powerrail", {
description = "Powered rail", description = "Powered rail",
tiles = {"carts_rail_pwr.png", "carts_rail_curved_pwr.png", "carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"}, tiles = {"carts_rail_pwr.png", "carts_rail_curved_pwr.png", "carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"},
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
if not mesecon then if not mesecon then
minetest.get_meta(pos):set_string("cart_acceleration", "0.5") minetest.get_meta(pos):set_string("cart_acceleration", "0.5")
@ -72,6 +73,7 @@ minetest.register_craft({
boost_cart:register_rail(":carts:brakerail", { boost_cart:register_rail(":carts:brakerail", {
description = "Brake rail", description = "Brake rail",
tiles = {"carts_rail_brk.png", "carts_rail_curved_brk.png", "carts_rail_t_junction_brk.png", "carts_rail_crossing_brk.png"}, tiles = {"carts_rail_brk.png", "carts_rail_curved_brk.png", "carts_rail_t_junction_brk.png", "carts_rail_crossing_brk.png"},
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
if not mesecon then if not mesecon then