Skip to content

Commit

Permalink
fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
C10udburst authored Apr 18, 2022
1 parent e4be6c9 commit ed16bd3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class PlayerHelper {

public static int getPops(PlayerEntity p) {
PopCounter popCounter = Modules.get().get(PopCounter.class);
if (popCounter == null) return 0;
if (!popCounter.isActive()) return 0;
if (!popCounter.totemPops.containsKey(p.getUuid())) return 0;
return popCounter.totemPops.getOrDefault(p.getUuid(), 0);
Expand Down

0 comments on commit ed16bd3

Please sign in to comment.