From 1b7c7829b230d9e7e0517b0e871b4862de869d51 Mon Sep 17 00:00:00 2001 From: B1n_ry Date: Sun, 22 Sep 2024 21:30:43 +0200 Subject: [PATCH] Added logging when grave backup is not generated --- src/main/java/com/b1n_ry/yigd/DeathHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/b1n_ry/yigd/DeathHandler.java b/src/main/java/com/b1n_ry/yigd/DeathHandler.java index 10c7a91..5f7810d 100644 --- a/src/main/java/com/b1n_ry/yigd/DeathHandler.java +++ b/src/main/java/com/b1n_ry/yigd/DeathHandler.java @@ -62,8 +62,10 @@ public void onPlayerDeath(ServerPlayerEntity player, ServerWorld world, Vec3d po GraveComponent graveComponent = new GraveComponent(profile, inventoryComponent, expComponent, world, graveGenerationPos.add(0D, .5D, 0D), deathSource.getDeathMessage(player), killerId); // Will keep track of player grave (if enabled) - if (!graveComponent.isEmpty()) { // There is no information worth backing up + if (!graveComponent.isEmpty()) { graveComponent.backUp(); + } else { + Yigd.LOGGER.info("No grave backup generated (empty grave)"); // There is no information worth backing up } respawnComponent.primeForRespawn(profile);