This commit is contained in:
Jakub authored and GitHub committed 2023-04-12 13:20:53 +02:00
1 parent 0149c34d1d
commit 72b71021de
1 file changed
+3 -1
@@ -100,13 +100,15 @@ public class AlleleEffectEmpowering extends AlleleEffect implements IAlleleBeeAc
do {
aspectToAdd = getWeightedRandomAspect(world.rand);
++rollAttempts;
} while (aspectsBase.getAmount(aspectToAdd) > (Config.thaumcraftNodeMaxSize - amount)
} while (aspectsBase.getAmount(aspectToAdd) > (Config.thaumcraftNodeMaxSize - 1)
&& rollAttempts < 20);
if (20 <= rollAttempts) {
continue;
}
amount=Math.min(Config.thaumcraftNodeMaxSize-aspectsBase.getAmount(aspectToAdd),amount);
aspectsBase.add(aspectToAdd, amount);
node.getAspects().add(aspectToAdd, amount);
updateNode(node, world);