Browse Source

Use minetest.raillike_group for rails

master
Wuzzy 1 month ago
parent
commit
1ed1bdfadb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      mods/ENTITIES/mcl_minecarts/rails.lua

+ 1
- 1
mods/ENTITIES/mcl_minecarts/rails.lua View File

@@ -2,7 +2,7 @@ local S = minetest.get_translator("mcl_minecarts")
2 2
 
3 3
 -- Template rail function
4 4
 local register_rail = function(itemstring, tiles, def_extras, creative)
5
-	local groups = {handy=1,pickaxey=1, attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,destroy_by_lava_flow=1, transport=1}
5
+	local groups = {handy=1,pickaxey=1, attached_node=1,rail=1,connect_to_raillike=minetest.raillike_group("rail"),dig_by_water=1,destroy_by_lava_flow=1, transport=1}
6 6
 	if creative == false then
7 7
 		groups.not_in_creative_inventory = 1
8 8
 	end

Loading…
Cancel
Save