Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs | 4 ++--
- MixedStoneBlocks/ThingPatch.cs | 3 +--
- MixedStoneBlocks/WidgetsPatch.cs | 5 ++---
- 3 files changed, 5 insertions(+), 7 deletions(-)
- diff --git a/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs b/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
- index c70b3fa..b333785 100644
- --- a/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
- +++ b/MixedStoneBlocks/BuildCopyCommandUtilityPatch.cs
- @@ -16,7 +16,7 @@
- {
- MixedWallIcon = PatchGraphics.MixedWallIcon;
- MixedDoorIcon = PatchGraphics.MixedDoorIcon;
- - MixedAutodoorIcon =PatchGraphics.MixedAutodoorIcon;
- + MixedAutodoorIcon = PatchGraphics.MixedAutodoorIcon;
- }
- [HarmonyPatch(
- @@ -37,7 +37,7 @@
- if (buildable == ThingDefOf.Door)
- __result.icon = MixedDoorIcon;
- - if (buildable == MixedStoneBlockDefs.Autodoor)
- + if (buildable == ThingDefOf.Autodoor)
- {
- __result.icon = MixedAutodoorIcon;
- }
- diff --git a/MixedStoneBlocks/ThingPatch.cs b/MixedStoneBlocks/ThingPatch.cs
- index aa37dd2..b27bbe2 100644
- --- a/MixedStoneBlocks/ThingPatch.cs
- +++ b/MixedStoneBlocks/ThingPatch.cs
- @@ -158,8 +158,7 @@ namespace MixedStoneBlocks
- return false;
- }
- - if (doorInstance?.def == MixedStoneBlockDefs.Autodoor)
- - {
- + if (doorInstance?.def == ThingDefOf.Autodoor)
- if (__instance.StyleDef?.Graphic == null)
- {
- LoadMixedStoneDoorGraphics(__instance.DefaultGraphic);
- diff --git a/MixedStoneBlocks/WidgetsPatch.cs b/MixedStoneBlocks/WidgetsPatch.cs
- index fbbec51..1226ab1 100644
- --- a/MixedStoneBlocks/WidgetsPatch.cs
- +++ b/MixedStoneBlocks/WidgetsPatch.cs
- @@ -48,10 +48,9 @@ namespace MixedStoneBlocks
- overrideIcon = true;
- newTexture = MixedDoorIcon;
- }
- - else
- - if (thingDef == MixedStoneBlockDefs.Autodoor)
- + else if (thingDef == MixedStoneBlockDefs.Autodoor)
- {
- - overrideIcon = thingStyleDef.Graphic == null;
- + overrideIcon = true;
- newTexture = MixedAutodoorIcon;
- }
- --
- 2.45.0
Advertisement
Add Comment
Please, Sign In to add comment