Refactor Player::GetPos() -> Player::GetPosition()

This commit is contained in:
Melledy
2022-07-19 00:35:54 -07:00
Unverified
parent 2e19e70fe1
commit cc5b292bc3
13 changed files with 32 additions and 32 deletions
@@ -85,7 +85,7 @@ public final class SpawnCommand implements CommandHandler {
double maxRadius = Math.sqrt(amount * 0.2 / Math.PI);
for (int i = 0; i < amount; i++) {
Position pos = GetRandomPositionInCircle(targetPlayer.getPos(), maxRadius).addY(3);
Position pos = GetRandomPositionInCircle(targetPlayer.getPosition(), maxRadius).addY(3);
if(x != 0 && y != 0 && z != 0) {
pos = GetRandomPositionInCircle(new Position(x, y, z), maxRadius).addY(3);
}