Skip to content

Commit 829ba1d

Browse files
committed
fix "scale" console command poke
1 parent a53b6b4 commit 829ba1d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using UnityEngine;
88
using Harmony;
99

10-
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.3.0", "Micrologist#2351")]
10+
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.3.1", "Micrologist#2351")]
1111
[assembly: MelonGame("PillowCastle", "Superliminal")]
1212
[assembly: MelonGame("PillowCastle", "SuperliminalSteam")]
1313

PracticeModManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using UnityEngine;
88
using UnityEngine.UI;
99
using UnityEngine.SceneManagement;
10+
using MelonLoader;
1011

1112
namespace SuperliminalPracticeMod
1213
{
@@ -400,8 +401,11 @@ public void Teleport(Vector3 position)
400401

401402
public void Scale(float newScale)
402403
{
403-
if(GameManager.GM.player != null && newScale > 0.0001f)
404+
if (GameManager.GM.player != null && newScale > 0.0001f)
405+
{
404406
playerMotor.transform.localScale = new Vector3(newScale, newScale, newScale);
407+
GameManager.GM.player.GetComponent<PlayerResizer>().Poke();
408+
}
405409
}
406410

407411
}

0 commit comments

Comments
 (0)