forked from GeyserMC/Geyser
Default bedrock enchantment level to 1
This commit is contained in:
parent
1b37a19280
commit
0720e18015
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ public class ItemTranslator {
|
||||||
CompoundTag javaTag = new CompoundTag("");
|
CompoundTag javaTag = new CompoundTag("");
|
||||||
Map<String, Tag> javaValue = javaTag.getValue();
|
Map<String, Tag> javaValue = javaTag.getValue();
|
||||||
javaValue.put("id", new StringTag("id", enchantment.getJavaIdentifier()));
|
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);
|
javaTag.setValue(javaValue);
|
||||||
tags.add(javaTag);
|
tags.add(javaTag);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue