File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
common/src/main/java/me/caseload/knockbacksync Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 77import me .caseload .knockbacksync .util .FloodgateUtil ;
88import me .caseload .knockbacksync .util .GeyserUtil ;
99import org .jetbrains .annotations .NotNull ;
10+ import org .jetbrains .annotations .Nullable ;
1011
1112import java .util .Map ;
1213import java .util .UUID ;
@@ -16,7 +17,7 @@ public class PlayerDataManager {
1617
1718 private static final Map <User , PlayerData > playerDataMap = new ConcurrentHashMap <>();
1819
19- public static PlayerData getPlayerData (@ NotNull User user ) {
20+ public static @ Nullable PlayerData getPlayerData (@ NotNull User user ) {
2021 return playerDataMap .get (user );
2122 }
2223
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ public void run() {
1717
1818 for (User user : CombatManager .getPlayers ()) {
1919 PlayerData playerData = PlayerDataManager .getPlayerData (user );
20- playerData .sendPing (true );
20+ if (playerData != null )
21+ playerData .sendPing (true );
2122 }
2223 }
2324}
You can’t perform that action at this time.
0 commit comments