mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-25 00:54:27 +00:00
Let NBT Tag(String name) accept a null name.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user