Skip to content

Commit

Permalink
Don't release planes with a plane master
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Jan 1, 2024
1 parent 5194bcd commit 84ce0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Rendering/DreamViewOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ private void ClearPlanes() {
var plane = pair.Value;

// We can remove the plane if there was nothing on it last frame
if (plane.IconDrawActions.Count == 0 && plane.MouseMapDrawActions.Count == 0) {
if (plane.IconDrawActions.Count == 0 && plane.MouseMapDrawActions.Count == 0 && plane.Master == null) {
_planes.Remove(pair.Key);
continue;
}
Expand Down

0 comments on commit 84ce0bc

Please sign in to comment.