F'ed up last commit, fixed now

This commit is contained in:
Frederik Palmø 2021-10-08 15:00:35 +02:00
parent 4c269e6938
commit 79a1bbd605

View file

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