mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
fixed the animal generator being really fricken long
This commit is contained in:
parent
d6faf9dde6
commit
8ac2ce24b3
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public class BlockAnimalGenerator extends BlockContainerImpl implements IVisuali
|
|||
float amountMod = child ? 0.667F : 1;
|
||||
|
||||
int timeAlive = data.getInteger(NaturesAura.MOD_ID + ":time_alive");
|
||||
int time = Math.min(MathHelper.floor((timeAlive - 15000) / 5F * timeMod), 30000);
|
||||
int time = Math.min(MathHelper.floor((timeAlive - 15000) / 500F * timeMod), 300);
|
||||
int amount = Math.min(MathHelper.floor((timeAlive - 8000) / 2.5F * amountMod), 15000);
|
||||
if (time <= 0 || amount <= 0)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue