fixed the animal generator being really fricken long

This commit is contained in:
Ellpeck 2019-01-29 20:17:10 +01:00
parent d6faf9dde6
commit 8ac2ce24b3

View file

@ -67,7 +67,7 @@ public class BlockAnimalGenerator extends BlockContainerImpl implements IVisuali
float amountMod = child ? 0.667F : 1; float amountMod = child ? 0.667F : 1;
int timeAlive = data.getInteger(NaturesAura.MOD_ID + ":time_alive"); 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); int amount = Math.min(MathHelper.floor((timeAlive - 8000) / 2.5F * amountMod), 15000);
if (time <= 0 || amount <= 0) if (time <= 0 || amount <= 0)
return false; return false;