Skip to content

Commit 5837a3b

Browse files
committed
fix nullpo対策 原因は当たり判定のせいかな
1 parent a00d218 commit 5837a3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/github/elic0de/thejpspit/TheJpsPit.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public void onDisable() {
219219

220220
Bukkit.getOnlinePlayers().forEach(player -> {
221221
final PitPlayer pitPlayer = PitPlayerManager.getPitPlayer(player);
222+
if (pitPlayer == null) return;
222223
game.leave(pitPlayer);
223224
pitPlayer.getBoard().destoryScoreboard();
224225
});

0 commit comments

Comments
 (0)