mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Replace float to double
This commit is contained in:
parent
0bdc84558f
commit
84f22a6ed4
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user