Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-28 09:00:11 +01:00
Default bedrock enchantment level to 1
Dieser Commit ist enthalten in:
Ursprung
1b37a19280
Commit
0720e18015
@ -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 {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren