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.
This commit is contained in:
Peter Olson
2012-03-26 00:32:47 -07:00
parent 533ca22e6c
commit a57657f149

View File

@ -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);