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