mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
parent
89de9fb688
commit
0c610b1b41
1 changed files with 2 additions and 3 deletions
|
@ -76,9 +76,8 @@ public class PlantBoostEffect implements IDrainSpotEffect {
|
||||||
try {
|
try {
|
||||||
growable.grow((ServerWorld) world, world.rand, plantPos, state);
|
growable.grow((ServerWorld) world, world.rand, plantPos, state);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Vanilla issue causes bamboo to crash if grown close to world height
|
// a lot of stuff throws here (double plants where generation only caused half of it to exist, bamboo at world height...)
|
||||||
if (!(growable instanceof BambooBlock))
|
// so just catch all, bleh
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
BlockPos closestSpot = IAuraChunk.getHighestSpot(world, plantPos, 25, pos);
|
BlockPos closestSpot = IAuraChunk.getHighestSpot(world, plantPos, 25, pos);
|
||||||
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 3500);
|
IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 3500);
|
||||||
|
|
Loading…
Reference in a new issue