mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-28 19:22:42 +01:00
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("");
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue