mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
SF: don't clear tags with bunny and hbuffer.
This commit is contained in:
parent
b2f513b1ad
commit
3bb18c5c35
@ -124,8 +124,7 @@ public class SurvivalFly extends Check {
|
|||||||
// Don't set "useWorkaround = x()", to avoid potential trouble with
|
// Don't set "useWorkaround = x()", to avoid potential trouble with
|
||||||
// reordering to come, and similar.
|
// reordering to come, and similar.
|
||||||
boolean useWorkaround = false;
|
boolean useWorkaround = false;
|
||||||
boolean setBackSafe = false; // Let compiler remove this if
|
boolean setBackSafe = false; // Let compiler remove this if necessary.
|
||||||
// necessary.
|
|
||||||
// Check for moving off stairs.
|
// Check for moving off stairs.
|
||||||
if (!useWorkaround && from.isAboveStairs()) {
|
if (!useWorkaround && from.isAboveStairs()) {
|
||||||
useWorkaround = true;
|
useWorkaround = true;
|
||||||
@ -254,7 +253,6 @@ public class SurvivalFly extends Check {
|
|||||||
if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) {
|
if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) {
|
||||||
data.bunnyhopDelay = 9;
|
data.bunnyhopDelay = 9;
|
||||||
hDistanceAboveLimit = 0D;
|
hDistanceAboveLimit = 0D;
|
||||||
tags.clear();
|
|
||||||
tags.add("bunny"); // TODO: Which here...
|
tags.add("bunny"); // TODO: Which here...
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +266,6 @@ public class SurvivalFly extends Check {
|
|||||||
data.horizontalBuffer = -hDistanceAboveLimit;
|
data.horizontalBuffer = -hDistanceAboveLimit;
|
||||||
}
|
}
|
||||||
if (hDistanceAboveLimit <= 0){
|
if (hDistanceAboveLimit <= 0){
|
||||||
tags.clear();
|
|
||||||
tags.add("hbuffer"); // TODO: ...
|
tags.add("hbuffer"); // TODO: ...
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user