mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 13:23:05 +00:00
24 lines
517 B
C#
24 lines
517 B
C#
|
using HarmonyLib;
|
|||
|
using QSB.Messaging;
|
|||
|
using QSB.ModelShip.Messages;
|
|||
|
using QSB.Patches;
|
|||
|
|
|||
|
namespace QSB.ModelShip.Patches;
|
|||
|
|
|||
|
public class ModelShipPatches : QSBPatch
|
|||
|
{
|
|||
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|||
|
|
|||
|
[HarmonyPrefix]
|
|||
|
[HarmonyPatch(typeof(RemoteFlightConsole), nameof(RemoteFlightConsole.RespawnModelShip))]
|
|||
|
private static void RemoteFlightConsole_RespawnModelShip(bool playEffects)
|
|||
|
{
|
|||
|
if (Remote)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
new RespawnModelShipMessage(playEffects).Send();
|
|||
|
}
|
|||
|
}
|