Fix double vs. int conversion problem

This commit is contained in:
Evenprime 2011-12-23 17:13:00 +01:00
parent dc3887b599
commit add6316c04
2 changed files with 4 additions and 3 deletions

View File

@ -38,10 +38,11 @@ public class FlyingCheck extends MovingCheck {
// Before doing anything, do a basic height check
// This is silent for now, will log messages later
// probably
if(to.y - data.vertFreedom > ccmoving.flyingHeightLimit) {
newToLocation = new PreciseLocation();
newToLocation.set(setBack);
newToLocation.y = ccmoving.flyingHeightLimit - 5;
newToLocation.y = ccmoving.flyingHeightLimit - 10;
return newToLocation;
}

View File

@ -4,8 +4,8 @@ import java.util.Map;
public class InventoryData extends Data {
public double dropVL = 0.0D;
public double dropTotalVL = 0.0D;
public int dropVL = 0;
public double dropTotalVL = 0;
public int dropFailed = 0;
public long dropLastTime;
public int dropCount;