SRMP-Public/SRMP/Patches/Patch_Oasis.cs
2023-05-29 22:23:11 +02:00

25 lines
No EOL
554 B
C#

using HarmonyLib;
using SRMultiplayer.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SRMultiplayer.Patches
{
[HarmonyPatch(typeof(Oasis))]
[HarmonyPatch("OnSetLive")]
class Oasis_OnSetLive
{
static void Prefix(Oasis __instance, bool immediate)
{
if (!Globals.IsMultiplayer || Globals.HandlePacket) return;
new PacketOasisLive()
{
ID = __instance.id
}.Send();
}
}
}