diff --git a/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs b/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs index 6fa11d7..b1164e7 100644 --- a/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs +++ b/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs @@ -212,7 +212,7 @@ private void LoadUnlockedGearsFromSave() return; // Reference to the vanilla location for storing gear unlock state - RefFixedArrayPtr vanillaUnlockedGearModels = new RefFixedArrayPtr((ulong)0x017BE4E8, (int)Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel.Cannonball + 1); + RefFixedArrayPtr vanillaUnlockedGearModels = new RefFixedArrayPtr((ulong)0x017BE4E8, (int)ExtremeGearModel.Cannonball + 1); for (var x = 0; x < vanillaUnlockedGearModels.Count; x++) { bool isUnlocked = vanillaUnlockedGearModels[x]; @@ -220,11 +220,11 @@ private void LoadUnlockedGearsFromSave() } // Unlock any remaining custom gears - int firstFreeGearModelSlot = (int)Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel.Berserker + 1; + int firstFreeGearModelSlot = (int)ExtremeGearModel.Berserker + 1; for (var x = firstFreeGearModelSlot; x < State.UnlockedGearModels.Count; x++) { // If it's defined in the Enum, it's a Vanilla gear, thus managed by the save. - if (Enum.IsDefined(typeof(Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel), (byte) x)) + if (Enum.IsDefined(typeof(ExtremeGearModel), (byte) x)) continue; State.UnlockedGearModels[x] = true;