| 123456789101112131415161718192021 |
- using GadgetCore.API;
- using HarmonyLib;
- using UnityEngine;
- namespace MultiplayerClientSpawn.Patches
- {
- [HarmonyPatch(typeof(SpawnBlock))]
- [HarmonyPatch("OnConnectedToServer")]
- [HarmonyGadget("MultiplayerClientSpawn")]
- public static class Patch_SpawnBlock_OnConnectedToServer
- {
- [HarmonyPostfix]
- public static bool Prefix(SpawnBlock __instance)
- {
- if (!Network.isServer)
- return false;
- return true;
- }
- }
- }
|