change nbt format: fix method names
This commit is contained in:
parent
17aad1f023
commit
dda5ac3573
40 changed files with 99 additions and 99 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue