Guest User

Untitled

a guest
Jul 8th, 2024
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1.  
  2. ---
  3. MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs | 4 ++--
  4. MixedStoneBlocks/ThingPatch.cs | 3 +--
  5. MixedStoneBlocks/WidgetsPatch.cs | 5 ++---
  6. 3 files changed, 5 insertions(+), 7 deletions(-)
  7.  
  8.  
  9. diff --git a/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs b/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
  10. index c70b3fa..b333785 100644
  11. --- a/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
  12. +++ b/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
  13. @@ -16,7 +16,7 @@
  14. {
  15. MixedWallIcon = PatchGraphics.MixedWallIcon;
  16. MixedDoorIcon = PatchGraphics.MixedDoorIcon;
  17. - MixedAutodoorIcon =PatchGraphics.MixedAutodoorIcon;
  18. + MixedAutodoorIcon = PatchGraphics.MixedAutodoorIcon;
  19. }
  20.  
  21. [HarmonyPatch(
  22. @@ -37,7 +37,7 @@
  23. if (buildable == ThingDefOf.Door)
  24. __result.icon = MixedDoorIcon;
  25.  
  26. - if (buildable == MixedStoneBlockDefs.Autodoor)
  27. + if (buildable == ThingDefOf.Autodoor)
  28. {
  29. __result.icon = MixedAutodoorIcon;
  30. }
  31. diff --git a/MixedStoneBlocks/ThingPatch.cs b/MixedStoneBlocks/ThingPatch.cs
  32. index aa37dd2..b27bbe2 100644
  33. --- a/MixedStoneBlocks/ThingPatch.cs
  34. +++ b/MixedStoneBlocks/ThingPatch.cs
  35. @@ -158,8 +158,7 @@ namespace MixedStoneBlocks
  36. return false;
  37. }
  38.  
  39. - if (doorInstance?.def == MixedStoneBlockDefs.Autodoor)
  40. - {
  41. + if (doorInstance?.def == ThingDefOf.Autodoor)
  42. if (__instance.StyleDef?.Graphic == null)
  43. {
  44. LoadMixedStoneDoorGraphics(__instance.DefaultGraphic);
  45. diff --git a/MixedStoneBlocks/WidgetsPatch.cs b/MixedStoneBlocks/WidgetsPatch.cs
  46. index fbbec51..1226ab1 100644
  47. --- a/MixedStoneBlocks/WidgetsPatch.cs
  48. +++ b/MixedStoneBlocks/WidgetsPatch.cs
  49. @@ -48,10 +48,9 @@ namespace MixedStoneBlocks
  50. overrideIcon = true;
  51. newTexture = MixedDoorIcon;
  52. }
  53. - else
  54. - if (thingDef == MixedStoneBlockDefs.Autodoor)
  55. + else if (thingDef == MixedStoneBlockDefs.Autodoor)
  56. {
  57. - overrideIcon = thingStyleDef.Graphic == null;
  58. + overrideIcon = true;
  59. newTexture = MixedAutodoorIcon;
  60. }
  61.  
  62. --
  63. 2.45.0
  64.  
Advertisement
Add Comment
Please, Sign In to add comment