Skip to content

Commit 9c8655f

Browse files
committed
Eepy kindlings no longer break bedrock
1 parent b3b6df4 commit 9c8655f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/de/dafuqs/spectrum/entity/entity/KindlingEntity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ private void ascend(int blastMod) {
392392
var distance = Math.sqrt(transmutePos.getSquaredDistance(getBlockPos()));
393393
if (distance <= 6 * blastMod || random.nextFloat() < 1 / ((distance - 6) / 3)) {
394394
var candidate = world.getBlockState(transmutePos);
395+
396+
// Do not the bedrock nor the claims
397+
if (candidate.getHardness(world, transmutePos) < 0 || !CommonProtectionApiCompat.canBreak(world, transmutePos, this))
398+
continue;
395399

396400
if (candidate.isAir()) {
397401
if (random.nextFloat() < 0.125F) {

0 commit comments

Comments
 (0)