forked from LogBlock/LogBlock
Merge pull request #108 from Peter200lx/master
Update to queueBlockReplace
This commit is contained in:
@@ -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