Skip to content

Commit

Permalink
Added logging when grave backup is not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
B1n-ry committed Sep 22, 2024
1 parent 128707c commit 1b7c782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/b1n_ry/yigd/DeathHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b7c782

Please sign in to comment.