added import

This commit is contained in:
Frank 2023-01-28 14:00:14 +01:00
parent ffe3c6d320
commit 2d365daae6

View file

@ -1,5 +1,6 @@
package org.betterx.betterend.rituals; package org.betterx.betterend.rituals;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.blocks.BlockProperties; import org.betterx.bclib.blocks.BlockProperties;
import org.betterx.betterend.BetterEnd; import org.betterx.betterend.BetterEnd;
import org.betterx.betterend.advancements.BECriteria; import org.betterx.betterend.advancements.BECriteria;
@ -722,6 +723,7 @@ public class EternalRitual {
Block searchBlock, Block searchBlock,
Predicate<BlockState> condition Predicate<BlockState> condition
) { ) {
BCLib.LOGGER.info("Checking " + checkPos + " for Portal");
if (world instanceof ServerLevel server) { if (world instanceof ServerLevel server) {
BlockPos.MutableBlockPos altCheckPos = new BlockPos.MutableBlockPos( BlockPos.MutableBlockPos altCheckPos = new BlockPos.MutableBlockPos(
checkPos.getX(), checkPos.getX(),
@ -731,6 +733,7 @@ public class EternalRitual {
var pos = findClosestPoi(server, altCheckPos); var pos = findClosestPoi(server, altCheckPos);
if (pos != null) { if (pos != null) {
checkPos = pos.mutable(); checkPos = pos.mutable();
BCLib.LOGGER.info("Moving to " + checkPos);
} }
} }
Direction moveDirection = Direction.EAST; Direction moveDirection = Direction.EAST;
@ -755,9 +758,10 @@ public class EternalRitual {
} }
} }
} }
System.out.print(checkPos + " -> " + moveDirection + " -> "); String s = checkPos + " -> " + moveDirection + " -> ";
checkPos.move(moveDirection, 16); checkPos.move(moveDirection, 16);
System.out.println(checkPos); s += checkPos;
BCLib.LOGGER.info(s);
} }
moveDirection = moveDirection.getClockWise(); moveDirection = moveDirection.getClockWise();
} }