mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-12 08:17:28 +00:00
fix NumberFormatException
This commit is contained in:
1 parent
6bdb1eba6c
commit
3bcfdd67ec
1 file changed
+1
-1
@@ -69,7 +69,7 @@ public class RecordMath implements IRecord {
|
||||
public RecordMath(NBTTagCompound nbt) {
|
||||
state = State.values()[nbt.getInteger(KEY_STATE)];
|
||||
operator = Operator.values()[nbt.getInteger(KEY_OPERATOR)];
|
||||
last = nbt.hasKey(KEY_LAST) ? new BigDecimal(nbt.getString(KEY_LAST)) : BigDecimal.ZERO;
|
||||
last = nbt.hasKey(KEY_LAST) ? BigDecimal.valueOf(nbt.getDouble(KEY_LAST)) : BigDecimal.ZERO;
|
||||
current = nbt.getString(KEY_CURRENT);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user