port a thing from chomens bot js to java

This commit is contained in:
Chayapak 2023-04-28 16:15:34 +07:00
parent c5c2c653fc
commit 40d8af9be8

View file

@ -219,9 +219,9 @@ public class CorePlugin extends PositionPlugin.PositionListener {
public void positionChange (Vector3i position) {
coreEnd = Vector3i.from(15, bot.config().core().layers() - 1, 15);
origin = Vector3i.from(
bot.position().position().getX(),
Math.floor((double) bot.position().position().getX() / 16) * 16,
0,
bot.position().position().getZ()
Math.floor((double) bot.position().position().getZ() / 16) * 16
);
originEnd = origin.add(coreEnd);