Skip to content

Commit

Permalink
Update GameServer.java
Browse files Browse the repository at this point in the history
Resolving Issue vanZeben#2.
  • Loading branch information
RndFooBar committed Nov 1, 2013
1 parent 21e26cf commit 439baed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ca/vanzeben/game/net/GameServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public void addConnection(PlayerMP player, Packet00Login packet) {

// relay to the new player that the currently connect player
// exists
packet = new Packet00Login(p.getUsername(), p.x, p.y);
sendData(packet.getData(), player.ipAddress, player.port);
packetCurrentPlayer = new Packet00Login(p.getUsername(), p.x, p.y);
sendData(packetCurrentPlayer.getData(), player.ipAddress, player.port);
}
}
if (!alreadyConnected) {
Expand Down

1 comment on commit 439baed

@leonardas103
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**line 92:
Packet00Login = packetCurrentPlayer = new Packet00Login(p.getUsername(), p.x, p.y);

Please sign in to comment.