Replace float to double

This commit is contained in:
TheMode 2021-06-16 12:26:27 +02:00
parent 0bdc84558f
commit 84f22a6ed4
2 changed files with 13 additions and 13 deletions

View File

@ -563,7 +563,7 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
this.velocity.multiply(tps);
final Block block = finalChunk.getBlock(position.toBlockPosition());
final float drag = block.registry().friction();
final double drag = block.registry().friction();
if (onGround) {
// Stop player velocity
if (isNettyClient) {

View File

@ -53,24 +53,24 @@ public class Registry {
return getInt("stateId");
}
public float destroySpeed() {
return getFloat("destroySpeed");
public double destroySpeed() {
return getDouble("destroySpeed");
}
public float explosionResistance() {
return getFloat("explosionResistance");
public double explosionResistance() {
return getDouble("explosionResistance");
}
public float friction() {
return getFloat("friction");
public double friction() {
return getDouble("friction");
}
public float speedFactor() {
return getFloat("speedFactor");
public double speedFactor() {
return getDouble("speedFactor");
}
public float jumpFactor() {
return getFloat("jumpFactor");
public double jumpFactor() {
return getDouble("jumpFactor");
}
public boolean isAir() {
@ -98,8 +98,8 @@ public class Registry {
return element(name).getAsString();
}
public float getFloat(String name) {
return element(name).getAsFloat();
public double getDouble(String name) {
return element(name).getAsDouble();
}
public int getInt(String name) {