Fix a bug relating to NBT decimal precision
This commit is contained in:
parent
ef1dc9c5c4
commit
e8e9accd13
4 changed files with 7 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
class Constants {
|
||||
static const VERSION = "1.4.052525+0002";
|
||||
static const NBT_REVISION = "1.4.020325+1215";
|
||||
static const VERSION = "1.4.052725+1328";
|
||||
static const NBT_REVISION = "1.4.052725+1328";
|
||||
static const ARGS_REVISION = "1.4.012225+0413";
|
||||
}
|
||||
|
|
|
@ -43,16 +43,14 @@ class DoubleTag extends Tag {
|
|||
|
||||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
NumberFormat nf = NumberFormat("###.##", "en_US");
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${nf.format(value)}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value.toString()}");
|
||||
}
|
||||
|
||||
@override
|
||||
void writeStringifiedValue(StringBuilder builder, int indent, bool isList) {
|
||||
NumberFormat nf = NumberFormat("###.##", "en_US");
|
||||
builder.append(
|
||||
"${isList ? "".padLeft(indent, '\t') : ""}${nf.format(value)}d");
|
||||
"${isList ? "".padLeft(indent, '\t') : ""}${value.toString()}d");
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -42,16 +42,14 @@ class FloatTag extends Tag {
|
|||
|
||||
@override
|
||||
void prettyPrint(int indent, bool recurse) {
|
||||
NumberFormat nf = NumberFormat("###.##", "en_US");
|
||||
print(
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${nf.format(value)}");
|
||||
"${"".padLeft(indent, '\t')}${Tag.getCanonicalName(getTagType())}: ${value.toString()}");
|
||||
}
|
||||
|
||||
@override
|
||||
void writeStringifiedValue(StringBuilder builder, int indent, bool isList) {
|
||||
NumberFormat nf = NumberFormat("###.##", "en_US");
|
||||
builder.append(
|
||||
"${isList ? "".padLeft(indent, '\t') : ""}${nf.format(value)}f");
|
||||
"${isList ? "".padLeft(indent, '\t') : ""}${value.toString()}f");
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: libac_dart
|
||||
description: "Aria's Creations code library"
|
||||
version: 1.4.052525+0002
|
||||
version: 1.4.052725+1328
|
||||
homepage: "https://zontreck.com"
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue