mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
fix the plant boost effect not happening in certain occasions even though it should
This commit is contained in:
parent
246ce3afe1
commit
d44501f925
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class PlantBoostEffect implements IDrainSpotEffect {
|
||||||
int aura = IAuraChunk.getAuraInArea(world, pos, 30);
|
int aura = IAuraChunk.getAuraInArea(world, pos, 30);
|
||||||
if (aura < 1500000)
|
if (aura < 1500000)
|
||||||
return false;
|
return false;
|
||||||
this.amount = Math.min(45, Math.abs(aura) / 100000 / IAuraChunk.getSpotAmountInArea(world, pos, 30));
|
this.amount = Math.min(45, MathHelper.ceil(Math.abs(aura) / 100000F / IAuraChunk.getSpotAmountInArea(world, pos, 30)));
|
||||||
if (this.amount <= 1)
|
if (this.amount <= 1)
|
||||||
return false;
|
return false;
|
||||||
this.dist = MathHelper.clamp(Math.abs(aura) / 150000, 5, 35);
|
this.dist = MathHelper.clamp(Math.abs(aura) / 150000, 5, 35);
|
||||||
|
|
Loading…
Reference in a new issue