From 46d6e8948d11336c89251bd2c2a98e6521dba968 Mon Sep 17 00:00:00 2001 From: B1n_ry Date: Sun, 3 Nov 2024 12:06:26 +0100 Subject: [PATCH] Added log message when grave resurfaces --- .../java/com/b1n_ry/yigd/block/entity/GraveBlockEntity.java | 2 ++ 1 file changed, 2 insertions(+) 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 735da080..f5c0e8c3 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 @@ -246,6 +246,8 @@ private void updatePosition(ServerLevel world, BlockPos pos) { ResolvableProfile owner = this.component.getOwner(); ServerPlayer player = owner.id().isPresent() ? playerManager.getPlayer(owner.id().get()) : playerManager.getPlayerByName(owner.name().orElse("PLAYER_NOT_FOUND")); if (player != null) { + Yigd.LOGGER.info("Grave belonging to {} resurfaced at X: {} / Y: {} / Z: {} / {}", this.component.getOwner().name().orElse("PLAYER_NOT_FOUND"), + this.worldPosition.getX(), this.worldPosition.getY(), this.worldPosition.getZ(), this.component.getWorldRegistryKey().location()); player.sendSystemMessage(Component.translatable("text.yigd.message.grave_relocated", pos.getX(), pos.getY(), pos.getZ(), world.dimension().location().toString())); } }