Merge pull request #699 from qsb-dev/dev

1.2.3
This commit is contained in:
_nebula 2024-12-23 22:32:04 +00:00 committed by GitHub
commit 8154f016ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -61,11 +61,9 @@ public class ServerQuantumMoonPatches : QSBPatch
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++)
{

View File

@ -209,6 +209,8 @@ public class DebugGUI : MonoBehaviour, IAddComponentOnStart
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)}");
}
}

View File

@ -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" ],