Skip to content

Commit

Permalink
Fix for 2024r175hf2
Browse files Browse the repository at this point in the history
  • Loading branch information
SDraw committed Apr 17, 2024
1 parent b84a3d7 commit 609bd50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CVRLua/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CVRLua
{
public class Core : MelonLoader.MelonMod
{
public const int c_modRelease = 35;
public const int c_modRelease = 36;

static public Core Instance { get; private set; } = null;
internal static MelonLoader.MelonLogger.Instance Logger = null;
Expand Down
8 changes: 4 additions & 4 deletions CVRLua/Players/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public float GetAvatarHeight()
l_result = PlayerSetup.Instance.GetAvatarHeight();
break;
case PlayerType.Remote:
l_result = m_puppetMaster.GetAvatarHeight();
l_result = m_puppetMaster.netIkController.GetRemoteHeight();
break;
}
return l_result;
Expand Down Expand Up @@ -147,7 +147,7 @@ public float GetPlayerHeight()
l_result = PlayerSetup.Instance.playerHeight;
break;
case PlayerType.Remote:
l_result = m_puppetMaster.GetAvatarHeight();
l_result = m_puppetMaster.netIkController.GetRemoteHeight();
break;
}
return l_result;
Expand Down Expand Up @@ -215,7 +215,7 @@ public bool IsInVR()
l_result = CheckVR.Instance.hasVrDeviceLoaded;
break;
case PlayerType.Remote:
l_result = (m_puppetMaster.PlayerAvatarMovementDataInput.DeviceType != PlayerAvatarMovementData.UsingDeviceType.PCStanalone);
l_result = (m_puppetMaster.PlayerAvatarMovementDataInput.DeviceType != PlayerAvatarMovementData.UsingDeviceType.PC_Desktop);
break;
}
return l_result;
Expand Down Expand Up @@ -509,7 +509,7 @@ public void Teleport(Vector3 p_position)
public void Teleport(Vector3 p_position, Quaternion p_rotation, bool p_velocity)
{
if(m_type == PlayerType.Local)
MovementSystem.Instance.TeleportPlayerTo(p_position, p_rotation.eulerAngles,true, p_velocity);
MovementSystem.Instance.TeleportPlayerTo(p_position, p_rotation.eulerAngles, true, p_velocity);
}

public void SetImmobilized(bool p_state)
Expand Down
2 changes: 1 addition & 1 deletion CVRLua/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[assembly: MelonLoader.MelonInfo(typeof(CVRLua.Core), "CVRLua", "1.0.35", "SDraw", "https://github.com/SDraw/CVRLua")]
[assembly: MelonLoader.MelonInfo(typeof(CVRLua.Core), "CVRLua", "1.0.36", "SDraw", "https://github.com/SDraw/CVRLua")]
[assembly: MelonLoader.MelonGame(null, "ChilloutVR")]
[assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
[assembly: MelonLoader.MelonPlatformDomain(MelonLoader.MelonPlatformDomainAttribute.CompatibleDomains.MONO)]

0 comments on commit 609bd50

Please sign in to comment.