2.1.3 Release

Improve ListTag type error
This commit is contained in:
Nassim Jahnke 2023-10-07 22:13:05 +10:00
parent 9c06609e68
commit 412b730811
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<groupId>com.viaversion</groupId>
<artifactId>opennbt</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
<packaging>jar</packaging>
<name>OpenNBT</name>
@ -72,7 +72,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<version>3.6.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
@ -90,7 +90,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>

View File

@ -100,7 +100,7 @@ public class ListTag extends Tag implements Iterable<Tag> {
if(this.type == null) {
this.type = tag.getClass();
} else if(tag.getClass() != this.type) {
throw new IllegalArgumentException("Tag type cannot differ from ListTag type.");
throw new IllegalArgumentException("Tag type " + tag.getClass().getSimpleName() + " differs from list type " + this.type.getSimpleName());
}
return this.value.add(tag);