mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
guh
This commit is contained in:
parent
1a1b48cfc6
commit
24cffdbf43
@ -4,6 +4,7 @@ using QSB.Messaging;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.ShipSync;
|
||||
using QSB.ShipSync.TransformSync;
|
||||
using QSB.Utility;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
@ -204,7 +205,7 @@ namespace QSB.DeathSync.Patches
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!ShipManager.Instance.HasAuthority)
|
||||
if (!ShipTransformSync.LocalInstance.hasAuthority)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ namespace QSB.ShipSync.Patches
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(ShipDamageController), nameof(ShipDamageController.OnImpact))]
|
||||
public static bool ShipDamageController_OnImpact()
|
||||
=> ShipTransformSync.LocalInstance == null || ShipManager.Instance.HasAuthority;
|
||||
=> ShipTransformSync.LocalInstance == null || ShipTransformSync.LocalInstance.hasAuthority;
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(ShipComponent), nameof(ShipComponent.RepairTick))]
|
||||
|
@ -22,8 +22,6 @@ namespace QSB.ShipSync
|
||||
public ShipTractorBeamSwitch ShipTractorBeam;
|
||||
public ShipCockpitController CockpitController;
|
||||
public ShipElectricalComponent ShipElectricalComponent;
|
||||
public bool HasAuthority
|
||||
=> ShipTransformSync.LocalInstance.hasAuthority;
|
||||
public uint CurrentFlyer
|
||||
{
|
||||
get => _currentFlyer;
|
||||
|
Loading…
Reference in New Issue
Block a user