Skip to content

Commit

Permalink
can't get mutch more done atm
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn1p3rr3c0n committed Jul 18, 2024
1 parent 1c8886f commit 6b33086
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/ProjectRimFactory/Storage/Building_MassStorageUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +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)
{
var drawerType = item.def.drawerType;
if (drawerType is DrawerType.MapMeshAndRealTime or DrawerType.RealtimeOnly)
if (item.def.drawerType is DrawerType.MapMeshAndRealTime or DrawerType.RealtimeOnly)
{
Map.dynamicDrawManager.DeRegisterDrawable(item);
}

//we would need to undo that
// item.def.drawGUIOverlay = false;
}

public void HandleMoveItem(Thing item)
Expand Down

0 comments on commit 6b33086

Please sign in to comment.