geforkt von Mirrors/FastAsyncWorldEdit
Let NBT Tag(String name) accept a null name.
Dieser Commit ist enthalten in:
Ursprung
3e34d5ca52
Commit
9b5c112e5c
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.jnbt;
|
package com.sk89q.jnbt;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a NBT tag.
|
* Represents a NBT tag.
|
||||||
*/
|
*/
|
||||||
@ -41,7 +39,9 @@ public abstract class Tag {
|
|||||||
* @param name the name
|
* @param name the name
|
||||||
*/
|
*/
|
||||||
Tag(String name) {
|
Tag(String name) {
|
||||||
checkNotNull(name);
|
if (name == null) {
|
||||||
|
name = "";
|
||||||
|
}
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren