Fix blockbucket pattern generation

This commit is contained in:
Alexander Söderberg 2020-02-23 21:29:53 +01:00
parent e39c7dfcde
commit 4ba1ae9aee

View File

@ -78,7 +78,7 @@ public final class BlockBucket implements ConfigurationSerializable {
private void addBlock(@NonNull final BlockState block, double chance) { private void addBlock(@NonNull final BlockState block, double chance) {
if (chance == -1) chance = 1; if (chance == -1) chance = 1;
String prefix = input.length() == 0 ? "" : ","; String prefix = input.length() == 0 ? "" : ",";
input.append(prefix).append(chance).append("%").append(block.toString()); input.append(prefix).append(block.toString()).append(":").append(chance);
this.compiled = false; this.compiled = false;
} }