mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-12 11:00:37 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user