F'ed up last commit, fixed now
This commit is contained in:
parent
4c269e6938
commit
79a1bbd605
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
package dk.palmoe.immersivexp;
|
package dk.palmoe.immersivexp;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.LeavesBlock;
|
import net.minecraft.block.LeavesBlock;
|
||||||
import net.minecraft.entity.ExperienceOrbEntity;
|
import net.minecraft.entity.ExperienceOrbEntity;
|
||||||
|
@ -19,7 +18,7 @@ public class Util {
|
||||||
queue.push(pos.up());
|
queue.push(pos.up());
|
||||||
int search_depth = 0;
|
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 nextPos = queue.pop();
|
||||||
|
|
||||||
BlockPos[] dirs = { nextPos.north(), nextPos.east(), nextPos.south(), nextPos.west(), nextPos.up() };
|
BlockPos[] dirs = { nextPos.north(), nextPos.east(), nextPos.south(), nextPos.west(), nextPos.up() };
|
||||||
|
|
Loading…
Reference in a new issue