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:
1 parent
533ca22e6c
commit
a57657f149
1 file changed
+1
-1
@@ -120,7 +120,7 @@ public class Consumer extends TimerTask
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void queueBlockReplace(String playerName, Location loc, int typeBefore, byte dataBefore, int typeAfter, byte dataAfter) {
|
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);
|
queueBlock(playerName, loc, typeBefore, typeAfter, dataAfter);
|
||||||
else {
|
else {
|
||||||
queueBlockBreak(playerName, loc, typeBefore, dataBefore);
|
queueBlockBreak(playerName, loc, typeBefore, dataBefore);
|
||||||
|
|||||||
Reference in new issue
Block a user