mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 16:27:34 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user