23 lines
No EOL
563 B
C#
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();
|
|
}
|
|
}
|
|
} |