Bigger houses (Gitea #7): a second row of roof on a wider house, a Roof Ridge for a 6 m-wide one, and a Half Wall and Ridge Gable to close their taller ends; also no error when a piece is dismantled straight after it's placed

This commit is contained in:
Paul Bailey
2026-11-08 19:56:16 +00:00
parent 415e673b28
commit 31f8e0d22c
10 changed files with 363 additions and 5 deletions

View File

@@ -173,8 +173,8 @@ func clear_under(piece: Node3D) -> void:
if not is_instance_valid(piece) or not is_inside_tree():
return
await get_tree().physics_frame # (the piece's collider is in the world from the next step)
if not is_instance_valid(piece):
return
if not is_instance_valid(piece) or not piece.is_inside_tree():
return # (dismantled straight away)
var space := get_world_3d().direct_space_state
var at := piece.global_position
for pk in pickups.values():