Skip to content

Commit

Permalink
Merge pull request #799 from zymex22/drawUpdates
Browse files Browse the repository at this point in the history
Draw Update
  • Loading branch information
Sn1p3rr3c0n authored Jul 18, 2024
2 parents 849c69d + 6b33086 commit 7d69014
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/ProjectRimFactory/Storage/Building_MassStorageUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,17 @@ public void HandleNewItem(Thing item)
deregisterDrawItem(item);
}

/// <summary>
/// Hides Things that get drawn with a RealTime Drawer
/// </summary>
/// <param name="item"></param>
private void deregisterDrawItem(Thing item)
{
Map.dynamicDrawManager.DeRegisterDrawable(item);
if (item.def.drawerType is DrawerType.MapMeshAndRealTime or DrawerType.RealtimeOnly)
{
Map.dynamicDrawManager.DeRegisterDrawable(item);
}

}

public void HandleMoveItem(Thing item)
Expand Down

0 comments on commit 7d69014

Please sign in to comment.