From 1fe8fb84c2de42d6773ec37ff4dac60e7163598c Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Mon, 14 Nov 2022 17:09:47 -0800 Subject: [PATCH] ladders/rails -> connected node --- modules/mining/nodes.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/mining/nodes.lua b/modules/mining/nodes.lua index b0cffb5..262551a 100644 --- a/modules/mining/nodes.lua +++ b/modules/mining/nodes.lua @@ -29,6 +29,8 @@ minetest.register_node("cottages:rope", { }) if cottages.has.carts then + local groups = table.copy(carts:get_rail_groups()) + groups.attached_node = 1 carts:register_rail("cottages:ladder_with_rope_and_rail", { description = S("Ladder with \"rail support\""), tiles = { @@ -36,7 +38,7 @@ if cottages.has.carts then }, inventory_image = "default_ladder_wood.png", wield_image = "default_ladder_wood.png", - groups = carts:get_rail_groups(), + groups = groups, sounds = cottages.sounds.wood, paramtype2 = "wallmounted", legacy_wallmounted = true, @@ -63,6 +65,7 @@ else groups = { choppy = 2, oddly_breakable_by_hand = 3, rail = 1, connect_to_raillike = minetest.raillike_group("rail"), + attached_node = 1, }, legacy_wallmounted = true, sounds = cottages.sounds.wood,