Location world reference
This commit is contained in:
@@ -48,8 +48,8 @@ public class LoginHandler extends AbstractStateHandler implements LoginStateHand
|
||||
Player player = playerManager.getPlayer(packet.getPlayerName())
|
||||
.orElseGet(() -> playerManager.createPlayer(
|
||||
packet.getPlayerName(),
|
||||
world.getSpawn(),
|
||||
new Look(0f, 0f)));
|
||||
world.getSpawn().getLocation(),
|
||||
world.getSpawn().getLook()));
|
||||
|
||||
channel.writeAndFlush(new LoginSuccessPacket(
|
||||
player.getUUID(),
|
||||
@@ -68,7 +68,7 @@ public class LoginHandler extends AbstractStateHandler implements LoginStateHand
|
||||
|
||||
// Spawn Position
|
||||
SpawnPositionPacket pkt2 = new SpawnPositionPacket();
|
||||
pkt2.setLocation(world.getSpawn());
|
||||
pkt2.setLocation(world.getSpawn().getLocation());
|
||||
channel.write(pkt2);
|
||||
|
||||
// Player Abilities
|
||||
|
||||
Reference in New Issue
Block a user