26 lines
No EOL
683 B
C#
26 lines
No EOL
683 B
C#
using HarmonyLib;
|
|
using SRMultiplayer.Networking;
|
|
using SRMultiplayer.Packets;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace SRMultiplayer.Patches
|
|
{
|
|
[HarmonyPatch(typeof(QuicksilverPlortCollector))]
|
|
[HarmonyPatch("Update")]
|
|
class QuicksilverPlortCollector_Update
|
|
{
|
|
static bool Prefix(QuicksilverPlortCollector __instance)
|
|
{
|
|
if (!Globals.IsMultiplayer) return true;
|
|
|
|
var netActor = __instance.GetComponent<NetworkActor>();
|
|
return (netActor != null && netActor.IsLocal);
|
|
}
|
|
}
|
|
} |