mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
fix the plant boost effect always being there if there's excess aura lol rip
Closes #16
This commit is contained in:
parent
e14de0b723
commit
de002bb01e
2 changed files with 3 additions and 3 deletions
|
@ -27,8 +27,8 @@ public class PlantBoostEffect implements IDrainSpotEffect {
|
|||
public void update(World world, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, MutableInt spot) {
|
||||
if (spot.intValue() <= 0)
|
||||
return;
|
||||
int aura = IAuraChunk.getAuraInArea(world, pos, 25);
|
||||
if (aura <= 0)
|
||||
int aura = IAuraChunk.getAuraInArea(world, pos, 30);
|
||||
if (aura < 15000)
|
||||
return;
|
||||
int amount = Math.min(45, Math.abs(aura) / 1000);
|
||||
if (amount <= 1)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
{
|
||||
"type":"text",
|
||||
"text":"Effects like these become apparent around the time that the meter of the $(l:items/eye)Environmental Eye$() fills up fully.$(br)This effect is known to only occur in the $(thing)overworld$()."
|
||||
"text":"Effects like these become apparent around the time that the meter of the $(l:items/eye)Environmental Eye$() fills up by about three quarters.$(br)This effect is known to only occur in the $(thing)overworld$()."
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue