Sanity check

This commit is contained in:
kuba6000 committed 2023-04-10 20:29:06 +02:00
1 parent 6bd5cc24d3
commit caca6a6329
1 file changed
+2 -1
@@ -95,7 +95,8 @@ public class AlleleEffectEmpowering extends AlleleEffect implements IAlleleBeeAc
if (world.rand.nextInt(randBase) < 120) {
Aspect aspectToAdd;
int rollAttempts = 0;
short amount = (short) ((int) did + world.rand.nextInt((int) (2f * did)));
short amount = (short) Math
.min((int) did + world.rand.nextInt((int) (2f * did)), Config.thaumcraftNodeMaxSize);
do {
aspectToAdd = getWeightedRandomAspect(world.rand);
++rollAttempts;