Skip to content

Commit

Permalink
Make walls connect to nodes in a new wall_connected group (#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 authored Nov 15, 2024
1 parent 093cd28 commit 92daf3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions game_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------
Expand Down
2 changes: 1 addition & 1 deletion mods/walls/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 92daf3e

Please sign in to comment.