Skip to content

Commit

Permalink
Fixed the render priority of a reset Millibelle
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMathGeek314 committed Aug 21, 2024
1 parent 04c9f9b commit 8a94a1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MilliGolf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class MilliGolf: Mod, ILocalSettings<LocalGolfSettings> {
public static PlayMakerFSM areaTitleRef;

new public string GetName() => "MilliGolf";
public override string GetVersion() => "1.1.0.0";
public override string GetVersion() => "1.1.0.1";

public static LocalGolfSettings golfData { get; set; } = new();
public void OnLoadLocal(LocalGolfSettings g) => golfData = g;
Expand Down Expand Up @@ -1208,6 +1208,7 @@ public override void OnEnter() {
GameObject.Destroy(MilliGolf.millibelleRef.gameObject);
MilliGolf.millibelleRef = GameObject.Instantiate(MilliGolf.prefabs["Ruins_Bathhouse"]["Banker Spa NPC"], gScene.millibelleSpawn, Quaternion.identity);
MilliGolf.millibelleRef.SetActive(true);
MilliGolf.millibelleRef.GetComponent<MeshRenderer>().sortingOrder = 1;
MilliGolf.currentScore = 0;
if(MilliGolf.ballCam == 1) {
typeof(CameraTarget).GetField("heroTransform", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(GameCameras.instance.cameraTarget, MilliGolf.millibelleRef.transform);
Expand Down

0 comments on commit 8a94a1b

Please sign in to comment.