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);