mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-29 23:17:41 +02:00
Another band-aid for the assumesprint workaround.
This commit is contained in:
parent
75c2f58b7c
commit
953af13405
@ -437,8 +437,12 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
// Hard to confine assumesprint further (some logics change with hdist or sprinting).
|
// Hard to confine assumesprint further (some logics change with hdist or sprinting).
|
||||||
if (player.getFoodLevel() > 5) {
|
if (player.getFoodLevel() > 5) {
|
||||||
data.timeSprinting = time;
|
data.timeSprinting = time;
|
||||||
// TODO: Server side is inconsistent, so the multiplier might be plain wrong (1.0).
|
|
||||||
data.multSprinting = mcAccess.getSprintAttributeMultiplier(player);
|
data.multSprinting = mcAccess.getSprintAttributeMultiplier(player);
|
||||||
|
// Server side can be inconsistent, so the multiplier might be plain wrong (1.0).
|
||||||
|
if (cc.assumeSprint && data.multSprinting == 1.0) {
|
||||||
|
// TODO: Could be more/less than actual, but "infinite" latency would not work either.
|
||||||
|
data.multSprinting = 1.30000002;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (time < data.timeSprinting) {
|
else if (time < data.timeSprinting) {
|
||||||
data.timeSprinting = 0;
|
data.timeSprinting = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user