Example #1
0
 public static bool UpdateSafeZoneEnabledPatch(MySafeZoneComponent __instance, MySafeZone safeZone, bool activate)
 {
     Log.Info($"{nameof(MySafeZoneComponentPatch)}.{nameof(UpdateSafeZoneEnabledPatch)}({activate})");
     return(Plugin.PermitsPlayerSafeZone(__instance.Entity, activate));
 }
Example #2
0
 static bool OnSafezoneCreateRemovePatch(MySafeZoneComponent __instance, bool turnOnSafeZone)
 {
     Log.Info($"{nameof(MySafeZoneComponentPatch)}.{nameof(OnSafezoneCreateRemovePatch)}({turnOnSafeZone})");
     return(Plugin.PermitsPlayerSafeZone(__instance.Entity, turnOnSafeZone));
 }