Skip to content

Commit

Permalink
Merge branch 'main' into fix-undefined-translation-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
navarchus authored Aug 21, 2024
2 parents 3fb8e34 + 5bb1ed1 commit ecf9f94
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ public BlockEntityRedstoneImpetus(BlockPos pWorldPosition, BlockState pBlockStat

protected @Nullable
GameProfile getPlayerName() {
Player player = getStoredPlayer();
if (player != null) {
return player.getGameProfile();
if (this.level instanceof ServerLevel) {
Player player = getStoredPlayer();
if (player != null) {
return player.getGameProfile();
}
}

return this.storedPlayerProfile;
Expand Down

0 comments on commit ecf9f94

Please sign in to comment.