fix the plant boost effect always being there if there's excess aura lol rip

Closes #16
This commit is contained in:
Ellpeck 2018-11-28 19:49:40 +01:00
parent e14de0b723
commit de002bb01e
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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$()."
}
]
}