Merge pull request #108 from Peter200lx/master

Update to queueBlockReplace
This commit is contained in:
DiddiZ
2012-03-26 17:06:56 -07:00

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