Fix nodes growing without limit (#33)

With this patch, aura node growth from Nexus bees will be properly
capped at 256 points per aspect, as originally intended, instead of
aspect nodes growing without any limit.
This commit is contained in:
Robin Munn authored and mezz committed 2017-08-20 12:43:13 -07:00
1 parent d13d5ec3dd
commit c796902c91
1 file changed
+1 -1
@@ -110,7 +110,7 @@ public class NodeHelper {
aspectToAdd = getWeightedRandomAspect(world.rand);
++rollAttempts;
}
while (aspectsBase.getAmount(aspectToAdd) < 255 && 20 < rollAttempts);
while (aspectsBase.getAmount(aspectToAdd) > 255 && rollAttempts < 20);
if (20 <= rollAttempts) {
return false;