Skip to content

Commit

Permalink
Added a log message when a grave reappears
Browse files Browse the repository at this point in the history
  • Loading branch information
B1n-ry committed Nov 3, 2024
1 parent 78a8d86 commit 13e36dc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ private void updatePosition(ServerWorld world, BlockPos pos) {
GameProfile owner = this.component.getOwner();
ServerPlayerEntity player = owner.getId() != null ? playerManager.getPlayer(owner.getId()) : playerManager.getPlayer(owner.getName());
if (player != null) {
Yigd.LOGGER.info("Grave belonging to {} resurfaced at X: {} / Y: {} / Z: {} / {}", this.component.getOwner().getName(), this.pos.getX(), this.pos.getY(), this.pos.getZ(), this.component.getWorldRegistryKey().getValue());
player.sendMessage(Text.translatable("text.yigd.message.grave_relocated", pos.getX(), pos.getY(), pos.getZ(), world.getRegistryKey().getValue().toString()));
}
}
Expand Down

0 comments on commit 13e36dc

Please sign in to comment.