Skip to content

Commit

Permalink
Merge pull request #699 from qsb-dev/dev
Browse files Browse the repository at this point in the history
1.2.3
  • Loading branch information
misternebula authored Dec 23, 2024
2 parents 5d8d977 + fb8c0fe commit 8154f01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions QSB/QuantumSync/Patches/Server/ServerQuantumMoonPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ public static bool ChangeQuantumState(QuantumMoon __instance, bool skipInstantVi
return false;
}

if (__instance._stateIndex == 5 && anyPlayerInQM && !playersInQuantumMoon.All(x => x.EntangledObject != null && x.EntangledObject.AttachedObject == __instance))
{
__result = false;
return false;
}
// Base code has a check here, but it's broken and does nothing.
// if (this._stateIndex == 5 && this._isPlayerInside && !this.IsPlayerEntangled())
// QuantumMoon overrides IsPlayerEntangled() to just return _isPlayerInside.

for (var i = 0; i < 10; i++)
{
Expand Down
2 changes: 2 additions & 0 deletions QSB/Utility/DebugGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ private static void DrawGui()
WriteLine(2, $" - Ref. Transform : {(referenceTransform == null ? "NULL" : referenceTransform.name)}", referenceTransform == null ? Color.red : Color.white);
WriteLine(2, $" - Local Position : {player.Body.transform.localPosition}");
WriteLine(2, $" - Position : {player.Body.transform.position}");

WriteLine(2, $" - Entangled Object: {(player.EntangledObject == null ? "NULL" : player.EntangledObject.Name)}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion QSB/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Nebula, John, Alek, & Rai",
"name": "Quantum Space Buddies",
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
"version": "1.2.2",
"version": "1.2.3",
"owmlVersion": "2.14.0",
"dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ],
"pathsToPreserve": [ "debugsettings.json" ],
Expand Down

0 comments on commit 8154f01

Please sign in to comment.