diff --git a/Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/impetuses/BlockEntityRedstoneImpetus.java b/Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/impetuses/BlockEntityRedstoneImpetus.java index c46b7aeedf..b776d156ce 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/impetuses/BlockEntityRedstoneImpetus.java +++ b/Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/impetuses/BlockEntityRedstoneImpetus.java @@ -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;