False positive fixes

- Accounted for soulsand for Horizontal check inside BlockInformation class.
- Fixed Fly liquid, scaffolding fales.
- Fixed false positive caused by breaking block. This was because all dig actions were being counted as an actual block break in BlockUpdateHandler.
This commit is contained in:
Dawson
2022-08-17 14:12:22 -04:00
parent 8ecdf979e7
commit f03ce27884
7 changed files with 226 additions and 155 deletions
@@ -197,14 +197,18 @@ public class APlayer {
}
InstantAction startAction = new InstantAction(startId, endId, false);
instantTransaction.put(startId, new Tuple<>(startAction, runnable));
synchronized (instantTransaction) {
instantTransaction.put(startId, new Tuple<>(startAction, runnable));
}
HandlerAbstract.getHandler().sendPacket(this, new PacketPlayOutTransaction(0, startId, false));
short finalEndId = endId, finalStartId = startId;
Anticheat.INSTANCE.onTickEnd(() -> {
InstantAction endAction = new InstantAction(finalStartId, finalEndId, true);
instantTransaction.put(finalEndId, new Tuple<>(endAction, runnable));
synchronized (instantTransaction) {
instantTransaction.put(finalEndId, new Tuple<>(endAction, runnable));
}
HandlerAbstract.getHandler()
.sendPacket(this, new PacketPlayOutTransaction(0, finalEndId, false));