Skip to content

Commit

Permalink
Fix RemoveEndPointTask not removing connected end point from network
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Nov 16, 2024
1 parent 21cc7d5 commit 78954fa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ internal class RemoveEndPointTask(
state.forEachConnectedNode(node) { type, face, connectedNode ->
state.removeConnection(connectedNode, type, face.oppositeFace)
if (connectedNode is NetworkEndPoint) {
state.getNetwork(connectedNode, type, face.oppositeFace)?.removeFace(connectedNode, face.oppositeFace)
state.removeNetwork(connectedNode, type, face.oppositeFace)
}
nodesToUpdate += connectedNode
Expand Down

0 comments on commit 78954fa

Please sign in to comment.