mirror of https://github.com/ViaVersion/ViaNBT.git
Fix ConverterRegistry#convertToTag
This commit is contained in:
parent
4f5060b5fa
commit
f04adbae9a
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>com.viaversion</groupId>
|
||||
<artifactId>nbt</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<version>3.2.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>ViaNBT</name>
|
||||
|
|
|
@ -108,7 +108,7 @@ public class ConverterRegistry {
|
|||
return null;
|
||||
}
|
||||
|
||||
TagConverter<T, ? extends V> converter = (TagConverter<T, ? extends V>) TAG_TO_CONVERTER.get(tag.getClass());
|
||||
TagConverter<T, ? extends V> converter = (TagConverter<T, ? extends V>) TAG_TO_CONVERTER.get(tag.getTagId());
|
||||
if (converter == null) {
|
||||
throw new ConversionException("Tag type " + tag.getClass().getName() + " has no converter.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue