Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Jul 9, 2024
1 parent 6e38d56 commit 92fecaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Automaton/Features/FlightBypass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public unsafe nint IsFlightProhibitedDetour(nint a1)
{
try
{
if (GetRow<TerritoryType>(Player.Territory)?.Unknown32 > 0 && !PlayerState.Instance()->IsAetherCurrentZoneComplete(Svc.ClientState.TerritoryType)) // don't bypass zones where no one can fly (idyllshire, rhalgr's)
if (GetRow<TerritoryType>(Player.Territory)?.Unknown32 > 0
&& !PlayerState.Instance()->IsAetherCurrentZoneComplete(Svc.ClientState.TerritoryType)
&& !(Svc.Condition[ConditionFlag.Mounted] || Svc.Condition[ConditionFlag.Mounted2])) // don't bypass zones where no one can fly (idyllshire, rhalgr's)
return 0;
}
catch (Exception e)
Expand Down
1 change: 1 addition & 0 deletions Automaton/FeaturesSetup/Tweak.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public Tweak()
IncompatibilityWarnings = CachedType.GetCustomAttributes<IncompatibilityWarningAttribute>().ToArray();
Outdated = CachedType.GetCustomAttribute<TweakAttribute>()?.Outdated ?? false;
Disabled = CachedType.GetCustomAttribute<TweakAttribute>()?.Disabled ?? false;
IsDebug = CachedType.GetCustomAttribute<TweakAttribute>()?.Debug ?? false;

TaskManager = new();
Navmesh = new();
Expand Down

0 comments on commit 92fecaf

Please sign in to comment.