it FIXED>.,,.

This commit is contained in:
Chayapak 2023-09-11 17:10:47 +07:00
parent 2ff5eb9b52
commit b04eb16d4f

View file

@ -309,15 +309,15 @@ public class CorePlugin extends PositionPlugin.Listener {
@Override @Override
public void positionChange (Vector3i position) { public void positionChange (Vector3i position) {
from = Vector3i.from( from = Vector3i.from(
fromSize.getX() + bot.position.position.getX(), (int) (fromSize.getX() + Math.floor((double) bot.position.position.getX() / 16) * 16),
MathUtilities.clamp(fromSize.getY(), bot.world.minY, bot.world.maxY), MathUtilities.clamp(fromSize.getY(), bot.world.minY, bot.world.maxY),
fromSize.getZ() + bot.position.position.getZ() (int) (fromSize.getZ() + Math.floor((double) bot.position.position.getZ() / 16) * 16)
); );
to = Vector3i.from( to = Vector3i.from(
toSize.getX() + bot.position.position.getX(), (int) (toSize.getX() + Math.floor((double) bot.position.position.getX() / 16) * 16),
MathUtilities.clamp(toSize.getY(), bot.world.minY, bot.world.maxY), MathUtilities.clamp(toSize.getY(), bot.world.minY, bot.world.maxY),
toSize.getZ() + bot.position.position.getZ() (int) (toSize.getZ() + Math.floor((double) bot.position.position.getZ() / 16) * 16)
); );
reset(); reset();