diff --git a/src/main/java/me/alex4386/plugin/typhon/volcano/lavaflow/VolcanoLavaFlow.java b/src/main/java/me/alex4386/plugin/typhon/volcano/lavaflow/VolcanoLavaFlow.java index 2a14e50..fb77108 100644 --- a/src/main/java/me/alex4386/plugin/typhon/volcano/lavaflow/VolcanoLavaFlow.java +++ b/src/main/java/me/alex4386/plugin/typhon/volcano/lavaflow/VolcanoLavaFlow.java @@ -1289,12 +1289,17 @@ public void addRootlessCone(Location location, int height, boolean openVent) { int baseInt = (int) Math.ceil(baseRaw); boolean allowLavaFlow = !this.isShuttingDown; + int summitThreshold = this.vent.getSummitBlock().getY() - 10; // get circle around the base block List craterBlock = VolcanoMath.getCircle(baseBlock, height); double heightSum = 0; for (Block block : craterBlock) { Block highestBlock = TyphonUtils.getHighestRocklikes(block); + if (highestBlock.getY() + height > summitThreshold) { + return; + } + heightSum += highestBlock.getY(); }