We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26087a9 commit 565bcb5Copy full SHA for 565bcb5
1 file changed
server/src/com/openrsc/server/model/entity/player/Player.java
@@ -3074,7 +3074,7 @@ public int getNpcKills() {
3074
3075
public int getRecentNpcKills() {
3076
if (getLastNpcKilledId() == -1) return 0;
3077
- return getKillCache().get(getLastNpcKilledId());
+ return getKillCache().getOrDefault(getLastNpcKilledId(), 0);
3078
}
3079
3080
public int getExpShared() {
0 commit comments