Carts: Do not connect rails with gunpowder (#1812)
This commit is contained in:
parent
bae17cd88c
commit
c51ebcb74a
2 changed files with 8 additions and 3 deletions
|
@ -211,7 +211,12 @@ end
|
|||
|
||||
function carts:get_rail_groups(additional_groups)
|
||||
-- Get the default rail groups and add more when a table is given
|
||||
local groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1}
|
||||
local groups = {
|
||||
dig_immediate = 2,
|
||||
attached_node = 1,
|
||||
rail = 1,
|
||||
connect_to_raillike = minetest.raillike_group("rail")
|
||||
}
|
||||
if type(additional_groups) == "table" then
|
||||
for k, v in pairs(additional_groups) do
|
||||
groups[k] = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue