From 3da03393e620295cb57a26513001f8b5a090400b Mon Sep 17 00:00:00 2001 From: JeromSar Date: Mon, 26 Aug 2013 17:48:19 +0200 Subject: [PATCH] Small bugfix with the logblock stick --- appinfo.properties | 6 +++--- buildnumber.properties | 4 ++-- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/appinfo.properties b/appinfo.properties index 504a5fd..1d87ba8 100644 --- a/appinfo.properties +++ b/appinfo.properties @@ -1,5 +1,5 @@ -#Mon, 26 Aug 2013 17:21:52 +0200 +#Mon, 26 Aug 2013 17:47:26 +0200 program.VERSION=3.1 -program.BUILDNUM=505 -program.BUILDDATE=08/26/2013 05\:21 PM +program.BUILDNUM=507 +program.BUILDDATE=08/26/2013 05\:47 PM diff --git a/buildnumber.properties b/buildnumber.properties index 6b6c842..bb75ebf 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Mon Aug 26 17:21:52 CEST 2013 -build.number=506 +#Mon Aug 26 17:47:26 CEST 2013 +build.number=508 diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index d0e611e..f8eb0dc 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -105,7 +105,7 @@ public class TFM_PlayerListener implements Listener TFM_Util.playerMsg(player, "Block edits at (" + ChatColor.WHITE + "X" + location.getBlockX() + ", Y" + location.getBlockY() + ", Z" + location.getBlockZ() + ChatColor.BLUE + ")" + ChatColor.WHITE + ":", ChatColor.BLUE); for (RollbackEntry entry : entries) { - String material = (entry.getType() == EntryType.BLOCK_BREAK ? entry.getFromMaterial() : entry.getToMaterial() + String.valueOf(entry.getData() == 0 ? entry.getData() : "")).toString(); + String material = (entry.getType() == EntryType.BLOCK_BREAK ? String.valueOf(entry.getFromMaterial()) : entry.getToMaterial() + (entry.getData() != 0 ? ":" + String.valueOf(entry.getData()) : "")); TFM_Util.playerMsg(player, " - " + ChatColor.BLUE + entry.getAuthor() + " " + entry.getType() + " " + material); }