Skip to content

Commit

Permalink
Fix #4: Island food is properly grabbable.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyhoot committed Feb 17, 2024
1 parent 320c1aa commit d4caab4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DeathrunRemade/Patches/FoodChallengePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ private static void ChangeFoodValues(Eatable __instance, ref float __result)
[HarmonyPatch(typeof(Knife), nameof(Knife.GiveResourceOnDamage))]
private static bool CancelKnifeHarvest(GameObject target)
{
return AllowPickup(target);
bool allowed = AllowPickup(target);
return allowed;
}

/// <summary>
Expand Down Expand Up @@ -139,7 +140,7 @@ private static bool AllowPickup(GameObject gameObject)
return false;

// Both remaining config options are covered with this check.
return RadiationPatcher.IsSurfaceIrradiated();
return !RadiationPatcher.IsSurfaceIrradiated();
}
}
}

0 comments on commit d4caab4

Please sign in to comment.