From cd2f6dcdfa6dc96cb952d029b082f1138696b2f2 Mon Sep 17 00:00:00 2001 From: Ben Blank Date: Sat, 5 Mar 2016 15:29:56 -0800 Subject: [PATCH] log position of death marker, not of player death --- .../com/five35/minecraft/ice/LivingDeathEventHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/five35/minecraft/ice/LivingDeathEventHandler.java b/src/main/java/com/five35/minecraft/ice/LivingDeathEventHandler.java index 0bdd0f8..dffc04c 100644 --- a/src/main/java/com/five35/minecraft/ice/LivingDeathEventHandler.java +++ b/src/main/java/com/five35/minecraft/ice/LivingDeathEventHandler.java @@ -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; } @@ -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++) {