Using doubles in most places again to avoid precision loss

This commit is contained in:
nossr50
2019-06-04 21:12:10 -07:00
parent 32fa6cee96
commit fc6c6ed2c4
59 changed files with 382 additions and 351 deletions

View File

@@ -11,10 +11,10 @@ public class McMMOPartyXpGainEvent extends Event implements Cancellable {
**/
private static final HandlerList handlers = new HandlerList();
private Party party;
private float xpGained;
private double xpGained;
private boolean cancelled;
public McMMOPartyXpGainEvent(Party party, float xpGained) {
public McMMOPartyXpGainEvent(Party party, double xpGained) {
this.party = party;
this.xpGained = xpGained;
this.cancelled = false;
@@ -31,14 +31,14 @@ public class McMMOPartyXpGainEvent extends Event implements Cancellable {
/**
* @return The amount of experience gained in this event
*/
public float getRawXpGained() {
public double getRawXpGained() {
return xpGained;
}
/**
* @param xpGained set amount of experience gained in this event
*/
public void setRawXpGained(float xpGained) {
public void setRawXpGained(double xpGained) {
this.xpGained = xpGained;
}