Default bedrock enchantment level to 1

This commit is contained in:
AJ Ferguson 2019-12-02 16:07:44 -09:00
parent 1b37a19280
commit 0720e18015

View file

@ -196,7 +196,7 @@ public class ItemTranslator {
CompoundTag javaTag = new CompoundTag("");
Map<String, Tag> javaValue = javaTag.getValue();
javaValue.put("id", new StringTag("id", enchantment.getJavaIdentifier()));
javaValue.put("lvl", new IntTag("lvl", tagValue.getAsShort("lvl")));
javaValue.put("lvl", new IntTag("lvl", tagValue.getAsShort("lvl", (short) 1)));
javaTag.setValue(javaValue);
tags.add(javaTag);
} else {