Skip to content

Commit

Permalink
Update TryMutate (#4222)
Browse files Browse the repository at this point in the history
clear unreachable code error from const change
  • Loading branch information
LtRipley36706 authored Aug 27, 2024
1 parent 6633b52 commit 4107ebf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/ACE.Server/Managers/RecipeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1476,15 +1476,15 @@ public static void ModifyDataID(Player player, RecipeModsDID didMod, WorldObject
}
}

/// <summary>
/// flag to use c# logic instead of mutate script logic
/// </summary>
private const bool useMutateNative = false;
///// <summary>
///// flag to use c# logic instead of mutate script logic
///// </summary>
//private const bool useMutateNative = false;

public static bool TryMutate(Player player, WorldObject source, WorldObject target, Recipe recipe, uint dataId, HashSet<uint> modified)
{
if (useMutateNative)
return TryMutateNative(player, source, target, recipe, dataId);
//if (useMutateNative)
// return TryMutateNative(player, source, target, recipe, dataId);

var numTimesTinkered = target.NumTimesTinkered;

Expand Down

0 comments on commit 4107ebf

Please sign in to comment.