mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-20 06:21:23 +01:00
Fix double vs. int conversion problem
This commit is contained in:
parent
dc3887b599
commit
add6316c04
@ -38,10 +38,11 @@ public class FlyingCheck extends MovingCheck {
|
|||||||
|
|
||||||
// Before doing anything, do a basic height check
|
// Before doing anything, do a basic height check
|
||||||
// This is silent for now, will log messages later
|
// This is silent for now, will log messages later
|
||||||
|
// probably
|
||||||
if(to.y - data.vertFreedom > ccmoving.flyingHeightLimit) {
|
if(to.y - data.vertFreedom > ccmoving.flyingHeightLimit) {
|
||||||
newToLocation = new PreciseLocation();
|
newToLocation = new PreciseLocation();
|
||||||
newToLocation.set(setBack);
|
newToLocation.set(setBack);
|
||||||
newToLocation.y = ccmoving.flyingHeightLimit - 5;
|
newToLocation.y = ccmoving.flyingHeightLimit - 10;
|
||||||
return newToLocation;
|
return newToLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ import java.util.Map;
|
|||||||
|
|
||||||
public class InventoryData extends Data {
|
public class InventoryData extends Data {
|
||||||
|
|
||||||
public double dropVL = 0.0D;
|
public int dropVL = 0;
|
||||||
public double dropTotalVL = 0.0D;
|
public double dropTotalVL = 0;
|
||||||
public int dropFailed = 0;
|
public int dropFailed = 0;
|
||||||
public long dropLastTime;
|
public long dropLastTime;
|
||||||
public int dropCount;
|
public int dropCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user