Skip to content

Commit 384dba9

Browse files
committed
v7.01
1 parent 79d4b3e commit 384dba9

12 files changed

+7
-18
lines changed

1.5/Assemblies/RimBees.dll

0 Bytes
Binary file not shown.

1.5/Source/RimBees/.vs/RimBees/FileContentIndex/read.lock

Whitespace-only changes.
114 KB
Binary file not shown.

1.5/Source/RimBees/RimBees/Harmony/Plant_PlantCollected.cs

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ public static class Plant_PlantCollected_Patch
2323
[HarmonyPrefix]
2424
public static void RegrowIfBeehouseNearby(ref Plant __instance)
2525
{
26-
27-
28-
2926
if (__instance.def.plant.HarvestDestroys && __instance.def.plant.Sowable && !__instance.def.plant.IsTree)
30-
3127
{
3228
HashSet<Thing> beehouses = __instance.Map.GetComponent<Beehouses_MapComponent>().beehouses_InMap;
33-
29+
bool doOnce = false;
3430
foreach (var beehouse in beehouses)
3531
{
3632
if (beehouse.PositionHeld.DistanceTo(__instance.PositionHeld) <= RimBees_Settings.beeEffectRadius)
@@ -47,24 +43,17 @@ public static void RegrowIfBeehouseNearby(ref Plant __instance)
4743
GenSpawn.Spawn(plant, __instance.Position, __instance.Map);
4844
plant.Growth = 0.25f;
4945
__instance.Map.mapDrawer.MapMeshDirty(__instance.Position, MapMeshFlagDefOf.Things);
50-
46+
doOnce = true;
5147
}
52-
5348
}
5449
}
50+
if (doOnce)
51+
{
52+
break;
53+
}
5554
}
56-
57-
58-
5955
}
60-
61-
62-
63-
6456
}
65-
66-
67-
6857
}
6958
}
7059

Binary file not shown.

0 commit comments

Comments
 (0)