Let NBT Tag(String name) accept a null name.

This commit is contained in:
sk89q 2014-07-15 19:53:15 -07:00
parent 3e34d5ca52
commit 9b5c112e5c

View File

@ -19,8 +19,6 @@
package com.sk89q.jnbt;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Represents a NBT tag.
*/
@ -41,7 +39,9 @@ public abstract class Tag {
* @param name the name
*/
Tag(String name) {
checkNotNull(name);
if (name == null) {
name = "";
}
this.name = name;
}