From 0c610b1b418c3f16108ff5c0fce0163aa0b78716 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 5 Oct 2020 22:48:32 +0200 Subject: [PATCH] catch any exceptions in plant boosting Closes #146 --- .../ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java b/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java index 3da92895..ffdce617 100644 --- a/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java +++ b/src/main/java/de/ellpeck/naturesaura/chunk/effect/PlantBoostEffect.java @@ -76,9 +76,8 @@ public class PlantBoostEffect implements IDrainSpotEffect { try { growable.grow((ServerWorld) world, world.rand, plantPos, state); } catch (Exception e) { - // Vanilla issue causes bamboo to crash if grown close to world height - if (!(growable instanceof BambooBlock)) - throw e; + // a lot of stuff throws here (double plants where generation only caused half of it to exist, bamboo at world height...) + // so just catch all, bleh } BlockPos closestSpot = IAuraChunk.getHighestSpot(world, plantPos, 25, pos); IAuraChunk.getAuraChunk(world, closestSpot).drainAura(closestSpot, 3500);