change nbt format: fix method names

This commit is contained in:
Sen 2025-05-27 21:34:46 +02:00
parent 17aad1f023
commit dda5ac3573
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
40 changed files with 99 additions and 99 deletions

View file

@ -331,11 +331,11 @@ public final class Server implements IThreadListener {
return null;
NBTTagDoubleList pos = tag.getDoubleList("Pos");
NBTTagFloatList rot = tag.getFloatList("Rotation");
double posX = pos.getDouble(0);
double posY = pos.getDouble(1);
double posZ = pos.getDouble(2);
float rotYaw = rot.getFloat(0);
float rotPitch = rot.getFloat(1);
double posX = pos.get(0);
double posY = pos.get(1);
double posZ = pos.get(2);
float rotYaw = rot.get(0);
float rotPitch = rot.get(1);
int dimension = tag.getInt("Dimension");
return new Position(posX, posY, posZ, rotYaw, rotPitch, dimension);
}