mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +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) {
|
public void update(World world, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, MutableInt spot) {
|
||||||
if (spot.intValue() <= 0)
|
if (spot.intValue() <= 0)
|
||||||
return;
|
return;
|
||||||
int aura = IAuraChunk.getAuraInArea(world, pos, 25);
|
int aura = IAuraChunk.getAuraInArea(world, pos, 30);
|
||||||
if (aura <= 0)
|
if (aura < 15000)
|
||||||
return;
|
return;
|
||||||
int amount = Math.min(45, Math.abs(aura) / 1000);
|
int amount = Math.min(45, Math.abs(aura) / 1000);
|
||||||
if (amount <= 1)
|
if (amount <= 1)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"text",
|
"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