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

23 lines
No EOL
563 B
C#

using HarmonyLib;
using MonomiPark.SlimeRancher.DataModel;
using SRMultiplayer.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SRMultiplayer.Patches
{
[HarmonyPatch(typeof(UITemplates))]
[HarmonyPatch("CreateCreditsPrefab")]
class UITemplates_CreateCreditsPrefab
{
static void Prefix(bool aboutCredits)
{
if (!Globals.IsMultiplayer || Globals.HandlePacket) return;
new PacketWorldCredits().Send();
}
}
}