import java.util.List;
import java.util.Objects;
import java.util.PriorityQueue;
+import java.util.zip.GZIPInputStream;
/**
* Low level map management and helpers.
public static TileMap loadLayered(File path) throws IOException {
TileMap map;
- try (DataInputStream mapFile = new DataInputStream(new FileInputStream(path))) {
+ try (DataInputStream mapFile = new DataInputStream(new GZIPInputStream(new FileInputStream(path)))) {
int magic = mapFile.readInt();
int version = mapFile.readInt();
int flags = mapFile.readInt();