From 92daf3e6f4900a1245817c7e41e70bca33afaa40 Mon Sep 17 00:00:00 2001 From: Alexander Chibrikin Date: Fri, 15 Nov 2024 17:10:14 +0300 Subject: [PATCH] Make walls connect to nodes in a new `wall_connected` group (#3159) --- game_api.txt | 6 ++++++ mods/walls/init.lua | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/game_api.txt b/game_api.txt index cc50f453..3e283078 100644 --- a/game_api.txt +++ b/game_api.txt @@ -341,6 +341,12 @@ walls.register(name, desc, texture, mat, sounds) ^ mat = "default:stone". Used to auto-generate crafting recipe. ^ sounds = sounds: see [#Default sounds] +All walls will be connected to any nodes with one of the following groups: + * `wall` + * `stone` + * `fence` + * `wall_connected` + Farming API ----------- diff --git a/mods/walls/init.lua b/mods/walls/init.lua index 120f65fa..0f7425c8 100644 --- a/mods/walls/init.lua +++ b/mods/walls/init.lua @@ -35,7 +35,7 @@ walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wa connect_back = {-1/4,-1/2,1/4,1/4,1/2 + fence_collision_extra,1/2}, connect_right = {1/4,-1/2,-1/4,1/2,1/2 + fence_collision_extra,1/4}, }, - connects_to = { "group:wall", "group:stone", "group:fence" }, + connects_to = { "group:wall", "group:stone", "group:fence", "group:wall_connected" }, paramtype = "light", is_ground_content = false, tiles = wall_texture_table,