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() };