Remove redundant name from Tag instances.

This commit is contained in:
sk89q
2014-11-14 11:38:54 -08:00
parent 7192780251
commit fe5cfced4f
33 changed files with 242 additions and 396 deletions

View File

@ -255,7 +255,7 @@ public class AnvilChunk implements Chunk {
return null;
}
return new CompoundTag("", values);
return new CompoundTag(values);
}
@Override

View File

@ -179,7 +179,7 @@ public class OldChunk implements Chunk {
if (values == null) {
return null;
}
return new CompoundTag("", values);
return new CompoundTag(values);
}
@Override

View File

@ -85,7 +85,7 @@ public abstract class LegacyChunkStore extends ChunkStore {
Tag tag;
try {
tag = nbt.readTag();
tag = nbt.readNamedTag().getTag();
if (!(tag instanceof CompoundTag)) {
throw new ChunkStoreException("CompoundTag expected for chunk; got "
+ tag.getClass().getName());

View File

@ -75,7 +75,7 @@ public abstract class McRegionChunkStore extends ChunkStore {
Tag tag;
try {
tag = nbt.readTag();
tag = nbt.readNamedTag().getTag();
if (!(tag instanceof CompoundTag)) {
throw new ChunkStoreException("CompoundTag expected for chunk; got " + tag.getClass().getName());
}