From a57657f149e65bad2f91055e519052d6ca5721db Mon Sep 17 00:00:00 2001 From: Peter Olson Date: Mon, 26 Mar 2012 00:32:47 -0700 Subject: [PATCH] Properly log block replacement. Before if a block was replaced with another block of the same type but with different data, it would not log the event if the original data was 0. --- src/de/diddiz/LogBlock/Consumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/diddiz/LogBlock/Consumer.java b/src/de/diddiz/LogBlock/Consumer.java index 17aa8c4..b55d12a 100644 --- a/src/de/diddiz/LogBlock/Consumer.java +++ b/src/de/diddiz/LogBlock/Consumer.java @@ -120,7 +120,7 @@ public class Consumer extends TimerTask } public void queueBlockReplace(String playerName, Location loc, int typeBefore, byte dataBefore, int typeAfter, byte dataAfter) { - if (dataBefore == 0) + if (dataBefore == 0 && (typeBefore != typeAfter)) queueBlock(playerName, loc, typeBefore, typeAfter, dataAfter); else { queueBlockBreak(playerName, loc, typeBefore, dataBefore);