Skip to content

Commit

Permalink
fix NPE with unconfigured player modules
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Jan 24, 2024
1 parent bab2b80 commit f54a5c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private boolean isDimensionBlacklisted(ModularRouterBlockEntity router, Player p
}

private Player getPlayer() {
return playerRef.get();
return playerRef == null ? null : playerRef.get();
}

@SubscribeEvent
Expand Down

0 comments on commit f54a5c2

Please sign in to comment.