Skip to content

Commit

Permalink
Disable "M<" button.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaberShip committed Sep 21, 2024
1 parent 812d832 commit 5cb98d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Client/Persistent/CaravanFormingPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static bool Prefix(Rect rect, string label, ref bool __result)
if (CaravanFormingProxy.drawing == null || CaravanFormingProxy.drawing.Session?.faction == Multiplayer.RealPlayerFaction)
return true;

if (label != "0" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
if (label != "0" && label != "M<" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
return true;

GUI.color = Widgets.InactiveColor;
Expand Down
2 changes: 1 addition & 1 deletion Source/Client/Persistent/TradingUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static bool Prefix(Rect rect, string label, ref bool __result)
if (TradingWindow.drawingTrade == null || MpTradeSession.current.NegotiatorFaction == Multiplayer.RealPlayerFaction)
return true;

if (label != "0" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
if (label != "0" && label != "M<" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
return true;

GUI.color = Widgets.InactiveColor;
Expand Down
2 changes: 1 addition & 1 deletion Source/Client/Persistent/TransporterLoadingPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static bool Prefix(Rect rect, string label, ref bool __result)
if (TransporterLoadingProxy.drawing == null || TransporterLoadingProxy.drawing.Session?.faction == Multiplayer.RealPlayerFaction)
return true;

if (label != "0" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
if (label != "0" && label != "M<" && label != "<<" && label != "<" && label != ">" && label != ">>" && label != ">M")
return true;

GUI.color = Widgets.InactiveColor;
Expand Down

0 comments on commit 5cb98d6

Please sign in to comment.