переименование метода
This commit is contained in:
@@ -15,7 +15,7 @@ public class TagListCodec implements Codec<TagList> {
|
||||
|
||||
@Override
|
||||
public TagList decode(NbtInputStream in) throws IOException {
|
||||
final Codec typeCodec = CodecEnum.valueOfTypeTag(TypeTag.getTypeById(in.readByte())).getCodec();
|
||||
final Codec typeCodec = CodecEnum.valueOfTypeTag(TypeTag.valueOfTypeId(in.readByte())).getCodec();
|
||||
final int size = in.readInt();
|
||||
|
||||
List<Tag> tagList;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class NbtInputStream extends InputStream {
|
||||
}
|
||||
|
||||
public Tag readTag() throws IOException {
|
||||
final TypeTag typeTag = TypeTag.getTypeById(read());
|
||||
final TypeTag typeTag = TypeTag.valueOfTypeId(read());
|
||||
if (typeTag == TypeTag.END) {
|
||||
return TagEnd.INSTANCE;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user