Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Remove the fake remote id from the cache before joining the remote se…
Browse files Browse the repository at this point in the history
…rver, fix crashes
  • Loading branch information
lukeeey committed Apr 29, 2020
1 parent 47919ca commit 6428ce2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public CachedPainting newPainting(int entityId, String name) {
}

public CachedPlayer clonePlayer(int newEntityId, CachedPlayer player) {
remoteToClientMap.remove(player.getRemoteEid());
player.setRemoteEid(newEntityId);

entities.put(player.getProxyEid(), player);
Expand Down

0 comments on commit 6428ce2

Please sign in to comment.