From 13e36dcdf92be72737ca6d34eb083a29acfb11bb Mon Sep 17 00:00:00 2001 From: B1n_ry Date: Sun, 3 Nov 2024 12:03:55 +0100 Subject: [PATCH] Added a log message when a grave reappears --- src/main/java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java b/src/main/java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java index 7098c20..7772741 100644 --- a/src/main/java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java +++ b/src/main/java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java @@ -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())); } }