private static Boolean Prefix(Player __instance, bool flashGuardStone)
 {
     if (Settings.isEnabled("AdvancedBuildingMode"))
     {
         ABM.PlayerInstance = __instance;
         ABM.run();
     }
     return(!ABM.isActive);
 }
示例#2
0
 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;
 }
示例#3
0
        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();
            }
        }