Make end tag singleton

This commit is contained in:
Jesse Boyd
2018-08-15 17:02:17 +10:00
parent 8d68191b2c
commit 13d2ae20d5
6 changed files with 14 additions and 5 deletions

View File

@ -399,7 +399,7 @@ public final class Spigot_v1_13_R1 implements BukkitImplAdapter<NBTBase> {
} else if (foreign instanceof NBTTagString) {
return new StringTag(foreign.b_()); // data
} else if (foreign instanceof NBTTagEnd) {
return new EndTag();
return EndTag.INSTANCE;
} else {
throw new IllegalArgumentException("Don't know how to make native " + foreign.getClass().getCanonicalName());
}