Skip to content

Commit

Permalink
log position of death marker, not of player death
Browse files Browse the repository at this point in the history
  • Loading branch information
benblank committed Mar 5, 2016
1 parent f924151 commit cd2f6dc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ private static boolean createDeathMarker(final BlockPos requestedPosition, final
((DeathMarkerTileEntity) world.getTileEntity(actualPosition)).store(player, inventories);
Ice.getProxy().getInventoryManagerRegistry().clearInventories(player, inventories.keySet());

final String message = String.format("Stored inventory for player %s at %s in dimension %s.", player.getCommandSenderEntity().getName(), actualPosition, world.provider.getDimensionName());
Ice.getProxy().getLogger().info(message);

return true;
}

Expand Down Expand Up @@ -56,9 +59,6 @@ public void onLivingDeathEvent(final LivingDeathEvent event) {
return;
}

final String message = String.format("Player %s died at %s in dimension %s, saving inventory.", playerName, position, world.provider.getDimensionName());
Ice.getProxy().getLogger().info(message);

for (int delta = 0; delta < 16; delta++) {
for (int dx = -delta; dx <= delta; dx++) {
for (int dy = -delta; dy <= delta; dy++) {
Expand Down

0 comments on commit cd2f6dc

Please sign in to comment.