mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 04:28:34 +00:00
Make end tag singleton
This commit is contained in:
@ -23,6 +23,9 @@ package com.sk89q.jnbt;
|
||||
* The {@code TAG_End} tag.
|
||||
*/
|
||||
public final class EndTag extends Tag {
|
||||
public static final EndTag INSTANCE = new EndTag();
|
||||
|
||||
private EndTag() {}
|
||||
|
||||
@Override
|
||||
public Object getValue() {
|
||||
|
@ -526,7 +526,7 @@ public final class NBTInputStream implements Closeable {
|
||||
throw new IOException(
|
||||
"TAG_End found without a TAG_Compound/TAG_List tag preceding it.");
|
||||
} else {
|
||||
return new EndTag();
|
||||
return EndTag.INSTANCE;
|
||||
}
|
||||
case NBTConstants.TYPE_BYTE:
|
||||
return new ByteTag(is.readByte());
|
||||
|
Reference in New Issue
Block a user