private static Boolean Prefix(Player __instance, bool flashGuardStone) { if (Settings.isEnabled("AdvancedBuildingMode")) { ABM.PlayerInstance = __instance; ABM.run(); } return(!ABM.isActive); }
private static Boolean Prefix(Player __instance, bool flashGuardStone) { if (Configuration.Current.AdvancedBuildingMode.IsEnabled) { ABM.PlayerInstance = __instance; ABM.run(); } if (ABM.isActive) return false; return true; }
private static void Postfix(Player __instance) { if (Configuration.Current.AdvancedEditingMode.IsEnabled) { AEM.PlayerInstance = __instance; AEM.run(); } if (Configuration.Current.AdvancedBuildingMode.IsEnabled) { ABM.PlayerInstance = __instance; ABM.run(); } }