mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 08:27:43 +01:00
Fix enchantment reading (#938)
This commit is contained in:
parent
ff7098a083
commit
e57e3ff305
@ -17,8 +17,8 @@ import java.util.UUID;
|
|||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public final class ItemSerializers {
|
public final class ItemSerializers {
|
||||||
public static final TagSerializer<EnchantmentEntry> ENCHANTMENT_SERIALIZER = new TagSerializer<>() {
|
public static final TagSerializer<EnchantmentEntry> ENCHANTMENT_SERIALIZER = new TagSerializer<>() {
|
||||||
static final Tag<Short> LEVEL = Tag.Short("Level");
|
static final Tag<Short> LEVEL = Tag.Short("lvl");
|
||||||
static final Tag<String> ID = Tag.String("Id");
|
static final Tag<String> ID = Tag.String("id");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable EnchantmentEntry read(@NotNull TagReadable reader) {
|
public @Nullable EnchantmentEntry read(@NotNull TagReadable reader) {
|
||||||
|
Loading…
Reference in New Issue
Block a user