Add new player flag.

This commit is contained in:
Major-
2014-06-22 15:26:49 +01:00
parent 34927136e0
commit 3ee5757565
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ public final class Player extends Mob {
* *
* @return A flag indicating if the player is new. * @return A flag indicating if the player is new.
*/ */
public boolean isNewPlayer() { public boolean isNew() {
return newPlayer; return newPlayer;
} }
@@ -49,7 +49,7 @@ public final class BinaryPlayerSaver implements PlayerSaver {
out.writeByte(position.getHeight()); out.writeByte(position.getHeight());
// write appearance // write appearance
out.writeBoolean(player.isNewPlayer()); out.writeBoolean(player.isNew());
Appearance appearance = player.getAppearance(); Appearance appearance = player.getAppearance();
out.writeByte(appearance.getGender().toInteger()); out.writeByte(appearance.getGender().toInteger());
int[] style = appearance.getStyle(); int[] style = appearance.getStyle();