remove excess newlines

This commit is contained in:
Mister_Nebula 2021-11-25 15:37:38 +00:00
parent 03f615525b
commit eb79e32491
11 changed files with 0 additions and 27 deletions

View File

@ -29,7 +29,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnSectorOccupantRemoved))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnSectorOccupantRemoved))]
public static bool OnSectorOccupantRemoved(AnglerfishController __instance, public static bool OnSectorOccupantRemoved(AnglerfishController __instance,
@ -51,7 +50,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.UpdateState))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.UpdateState))]
public static bool UpdateState(AnglerfishController __instance) public static bool UpdateState(AnglerfishController __instance)
@ -167,7 +165,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.UpdateMovement))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.UpdateMovement))]
public static bool UpdateMovement(AnglerfishController __instance) public static bool UpdateMovement(AnglerfishController __instance)
@ -250,7 +247,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnImpact))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnImpact))]
public static bool OnImpact(AnglerfishController __instance, public static bool OnImpact(AnglerfishController __instance,
@ -275,7 +271,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnClosestAudibleNoise))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnClosestAudibleNoise))]
public static bool OnClosestAudibleNoise(AnglerfishController __instance, public static bool OnClosestAudibleNoise(AnglerfishController __instance,
@ -330,7 +325,6 @@ namespace QSB.Anglerfish.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnCaughtObject))] [HarmonyPatch(typeof(AnglerfishController), nameof(AnglerfishController.OnCaughtObject))]
public static bool OnCaughtObject(AnglerfishController __instance, public static bool OnCaughtObject(AnglerfishController __instance,

View File

@ -41,7 +41,6 @@ namespace QSB.Anglerfish.TransformSync
SetReferenceTransform(_qsbAngler.AttachedObject._brambleBody.transform); SetReferenceTransform(_qsbAngler.AttachedObject._brambleBody.transform);
} }
private bool _shouldUpdate; private bool _shouldUpdate;
public override void DeserializeTransform(QNetworkReader reader, bool initialState) public override void DeserializeTransform(QNetworkReader reader, bool initialState)
@ -65,7 +64,6 @@ namespace QSB.Anglerfish.TransformSync
return base.UpdateTransform(); return base.UpdateTransform();
} }
protected override void OnRenderObject() protected override void OnRenderObject()
{ {
base.OnRenderObject(); base.OnRenderObject();

View File

@ -92,7 +92,6 @@ namespace QSB.Menus
DisconnectButton = MenuApi.PauseMenu_MakeSimpleButton("DISCONNECT"); DisconnectButton = MenuApi.PauseMenu_MakeSimpleButton("DISCONNECT");
DisconnectButton.onClick.AddListener(Disconnect); DisconnectButton.onClick.AddListener(Disconnect);
if (QSBCore.IsInMultiplayer) if (QSBCore.IsInMultiplayer)
{ {
ClientButton.SetActive(false); ClientButton.SetActive(false);

View File

@ -18,7 +18,6 @@ namespace QSB.MeteorSync.Patches
public static bool FixedUpdate(MeteorLauncher __instance) public static bool FixedUpdate(MeteorLauncher __instance)
=> false; => false;
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.LaunchMeteor))] [HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.LaunchMeteor))]
public static bool LaunchMeteor(MeteorLauncher __instance) public static bool LaunchMeteor(MeteorLauncher __instance)
@ -69,7 +68,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Impact))] [HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Impact))]
public static bool Impact(MeteorController __instance, public static bool Impact(MeteorController __instance,
@ -106,7 +104,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DetachableFragment), nameof(DetachableFragment.Detach))] [HarmonyPatch(typeof(DetachableFragment), nameof(DetachableFragment.Detach))]
public static void Detach_Prefix(DetachableFragment __instance, out FragmentIntegrity __state) => public static void Detach_Prefix(DetachableFragment __instance, out FragmentIntegrity __state) =>
@ -118,7 +115,6 @@ namespace QSB.MeteorSync.Patches
public static void Detach_Postfix(DetachableFragment __instance, FragmentIntegrity __state) => public static void Detach_Postfix(DetachableFragment __instance, FragmentIntegrity __state) =>
__instance._fragmentIntegrity = __state; __instance._fragmentIntegrity = __state;
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.MoveByDistance))] [HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.MoveByDistance))]
public static bool MoveByDistance(DebrisLeash __instance, public static bool MoveByDistance(DebrisLeash __instance,
@ -140,7 +136,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.FixedUpdate))] [HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.FixedUpdate))]
public static bool FixedUpdate(DebrisLeash __instance) public static bool FixedUpdate(DebrisLeash __instance)

View File

@ -11,7 +11,6 @@ namespace QSB.MeteorSync.Patches
{ {
public override QSBPatchTypes Type => QSBPatchTypes.OnServerClientConnect; public override QSBPatchTypes Type => QSBPatchTypes.OnServerClientConnect;
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.FixedUpdate))] [HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.FixedUpdate))]
public static bool FixedUpdate(MeteorLauncher __instance) public static bool FixedUpdate(MeteorLauncher __instance)
@ -75,7 +74,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.LaunchMeteor))] [HarmonyPatch(typeof(MeteorLauncher), nameof(MeteorLauncher.LaunchMeteor))]
public static bool LaunchMeteor(MeteorLauncher __instance) public static bool LaunchMeteor(MeteorLauncher __instance)
@ -133,7 +131,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Impact))] [HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Impact))]
public static void Impact(MeteorController __instance, public static void Impact(MeteorController __instance,
@ -146,7 +143,6 @@ namespace QSB.MeteorSync.Patches
} }
} }
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(typeof(FragmentIntegrity), nameof(FragmentIntegrity.AddDamage))] [HarmonyPatch(typeof(FragmentIntegrity), nameof(FragmentIntegrity.AddDamage))]
public static void AddDamage(FragmentIntegrity __instance, public static void AddDamage(FragmentIntegrity __instance,
@ -156,7 +152,6 @@ namespace QSB.MeteorSync.Patches
QSBEventManager.FireEvent(EventNames.QSBFragmentDamage, qsbFragment, damage); QSBEventManager.FireEvent(EventNames.QSBFragmentDamage, qsbFragment, damage);
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DetachableFragment), nameof(DetachableFragment.Detach))] [HarmonyPatch(typeof(DetachableFragment), nameof(DetachableFragment.Detach))]
public static void Detach_Prefix(DetachableFragment __instance, out FragmentIntegrity __state) => public static void Detach_Prefix(DetachableFragment __instance, out FragmentIntegrity __state) =>
@ -168,7 +163,6 @@ namespace QSB.MeteorSync.Patches
public static void Detach_Postfix(DetachableFragment __instance, FragmentIntegrity __state) => public static void Detach_Postfix(DetachableFragment __instance, FragmentIntegrity __state) =>
__instance._fragmentIntegrity = __state; __instance._fragmentIntegrity = __state;
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.MoveByDistance))] [HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.MoveByDistance))]
public static bool MoveByDistance(DebrisLeash __instance, public static bool MoveByDistance(DebrisLeash __instance,
@ -190,7 +184,6 @@ namespace QSB.MeteorSync.Patches
return false; return false;
} }
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.FixedUpdate))] [HarmonyPatch(typeof(DebrisLeash), nameof(DebrisLeash.FixedUpdate))]
public static bool FixedUpdate(DebrisLeash __instance) public static bool FixedUpdate(DebrisLeash __instance)

View File

@ -22,7 +22,6 @@ namespace QSB.MeteorSync.WorldObjects
} }
} }
public DetachableFragment DetachableFragment; public DetachableFragment DetachableFragment;
public bool IsDetached => DetachableFragment != null && DetachableFragment._isDetached; public bool IsDetached => DetachableFragment != null && DetachableFragment._isDetached;
public bool IsThruWhiteHole => IsDetached && DetachableFragment._sector != null && public bool IsThruWhiteHole => IsDetached && DetachableFragment._sector != null &&

View File

@ -11,7 +11,6 @@ namespace QSB.MeteorSync.WorldObjects
AttachedObject = attachedObject; AttachedObject = attachedObject;
} }
public static bool IsSpecialImpact(GameObject go) => public static bool IsSpecialImpact(GameObject go) =>
go == Locator.GetPlayerCollider().gameObject || go == Locator.GetProbe()._anchor._collider.gameObject; go == Locator.GetPlayerCollider().gameObject || go == Locator.GetProbe()._anchor._collider.gameObject;

View File

@ -10,7 +10,6 @@ namespace QSB.MeteorSync.WorldObjects
AttachedObject = attachedObject; AttachedObject = attachedObject;
} }
public int MeteorId; public int MeteorId;
public float LaunchSpeed; public float LaunchSpeed;

View File

@ -93,7 +93,6 @@ namespace QSB.Syncs.Unsectored.Rigidbodies
_relativeAngularVelocity = ReferenceTransform.GetAttachedOWRigidbody().EncodeAngVel(((OWRigidbody)AttachedObject).GetAngularVelocity()); _relativeAngularVelocity = ReferenceTransform.GetAttachedOWRigidbody().EncodeAngVel(((OWRigidbody)AttachedObject).GetAngularVelocity());
} }
protected override bool UpdateTransform() protected override bool UpdateTransform()
{ {
if (HasAuthority) if (HasAuthority)

View File

@ -16,7 +16,6 @@ namespace QSB.Tools.TranslatorTool
private QSBTranslatorScanBeam[] _scanBeams; private QSBTranslatorScanBeam[] _scanBeams;
private bool _isTranslating; private bool _isTranslating;
private void Awake() private void Awake()
{ {
_targetBeam = transform.GetComponentInChildren<TranslatorTargetBeam>(); _targetBeam = transform.GetComponentInChildren<TranslatorTargetBeam>();

View File

@ -18,7 +18,6 @@ namespace QSB.Tools.TranslatorTool
var REMOTE_TranslatorGroup = REMOTE_NomaiTranslatorProp.transform.Find("TranslatorGroup"); var REMOTE_TranslatorGroup = REMOTE_NomaiTranslatorProp.transform.Find("TranslatorGroup");
var REMOTE_Props_HEA_Translator = REMOTE_TranslatorGroup.Find("Props_HEA_Translator"); var REMOTE_Props_HEA_Translator = REMOTE_TranslatorGroup.Find("Props_HEA_Translator");
Object.Destroy(REMOTE_TranslatorGroup.Find("Canvas").gameObject); Object.Destroy(REMOTE_TranslatorGroup.Find("Canvas").gameObject);
Object.Destroy(REMOTE_Props_HEA_Translator.Find("Props_HEA_Translator_Pivot_RotatingPart") Object.Destroy(REMOTE_Props_HEA_Translator.Find("Props_HEA_Translator_Pivot_RotatingPart")
.Find("Props_HEA_Translator_RotatingPart") .Find("Props_HEA_Translator_RotatingPart")