Skip to content

Commit

Permalink
fix tile entities with sponge schem loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 14, 2019
1 parent e47c82e commit 4771aa1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -58,8 +58,8 @@ public static CuboidBlockSet fromSpongeStream(InputStream is) {
palette.put(id, data);
}
Map<BlockVector, Map<String, Tag>> tileEntitiesMap = new HashMap<>();
if (schematic.containsKey("TileEntities")) {
List<Tag> tileEntities = getChildTag(schematic, "TileEntities", ListTag.class).getValue();
if (schematic.containsKey("BlockEntities")) {
List<Tag> tileEntities = getChildTag(schematic, "BlockEntities", ListTag.class).getValue();
for (Tag tag : tileEntities) {
if (!(tag instanceof CompoundTag)) {
continue;
Expand Down

0 comments on commit 4771aa1

Please sign in to comment.