From 79a1bbd60526155057d8e34cd3b3c5bf0b9860e9 Mon Sep 17 00:00:00 2001 From: vodofrede Date: Fri, 8 Oct 2021 15:00:35 +0200 Subject: [PATCH] F'ed up last commit, fixed now --- src/main/java/dk/palmoe/immersivexp/Util.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dk/palmoe/immersivexp/Util.java b/src/main/java/dk/palmoe/immersivexp/Util.java index 0eff101..09622e6 100644 --- a/src/main/java/dk/palmoe/immersivexp/Util.java +++ b/src/main/java/dk/palmoe/immersivexp/Util.java @@ -1,7 +1,6 @@ package dk.palmoe.immersivexp; import java.util.LinkedList; - import net.minecraft.block.BlockState; import net.minecraft.block.LeavesBlock; import net.minecraft.entity.ExperienceOrbEntity; @@ -19,7 +18,7 @@ public class Util { queue.push(pos.up()); int search_depth = 0; - while (!queue.isEmpty() && search_depth >= MAX_SEARCH_DEPTH) { + while (!queue.isEmpty() && (search_depth <= MAX_SEARCH_DEPTH)) { BlockPos nextPos = queue.pop(); BlockPos[] dirs = { nextPos.north(), nextPos.east(), nextPos.south(), nextPos.west(), nextPos.up() };