Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FarmlandDropsWithNutrients/FDWNCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public override void AssetsFinalize(ICoreAPI api)
foreach (var collectible in api.World.Collectibles.Where(c => c?.Code != null))
{
if (!collectible.IsAcceptableFarmland()) continue;
Logger.Warning($"Adding behavior to {collectible.Code}");
Logger.Event($"Adding behavior to {collectible.Code}");
collectible.AddBehavior<FarmlandWithNutrientsBehavior>();
}

foreach (var block in api.World.Blocks.Where(b => b?.Code != null))
{
if (!block.IsAcceptableFarmland()) continue;
Logger.Warning($"Adding behavior to {block.Code}");
Logger.Event($"Adding behavior to {block.Code}");
block.AddBehavior<KeepNutrientsBehavior>();
}
}
Expand Down Expand Up @@ -76,4 +76,4 @@ public static bool TryMergeStacksPrefix(CollectibleObject __instance, ItemStackM
public override void Dispose() {
HarmonyInstance?.UnpatchAll(Mod.Info.ModID);
}
}
}