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

Commit

Permalink
Merge pull request #103 from HoverEpic/entityCache-improvments
Browse files Browse the repository at this point in the history
fix NPE when getting an not cached entity in cache
  • Loading branch information
DefinitlyEvil authored Dec 11, 2017
2 parents f0cdf76 + 99ddda4 commit 9ce437c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public CachedEntity getClientEntity() {
}

public CachedEntity getByRemoteEID(long eid) {
if (!mapRemoteToClient.containsKey(eid))
{
return null;
}
long proxyEid = mapRemoteToClient.get(eid);
return entities.get(proxyEid);
}
Expand Down

0 comments on commit 9ce437c

Please sign in to comment.