diff --git a/core/src/mindustry/io/MapIO.java b/core/src/mindustry/io/MapIO.java index d37cf8f43a..7aeb21f9f7 100644 --- a/core/src/mindustry/io/MapIO.java +++ b/core/src/mindustry/io/MapIO.java @@ -97,6 +97,7 @@ public class MapIO{ }; ver.readRegion("content", stream, counter, ver::readContentHeader); + if(ver.version >= 11) ver.readRegion("content", stream, counter, ver::skipContentPatches); ver.readRegion("preview_map", stream, counter, in -> ver.readMap(in, new WorldContext(){ @Override public void resize(int width, int height){} @Override public boolean isGenerating(){return false;} diff --git a/core/src/mindustry/io/SaveVersion.java b/core/src/mindustry/io/SaveVersion.java index d5f7a08a77..6973da00fc 100644 --- a/core/src/mindustry/io/SaveVersion.java +++ b/core/src/mindustry/io/SaveVersion.java @@ -505,6 +505,14 @@ public abstract class SaveVersion extends SaveFileReader{ readWorldEntities(stream, mapping); } + public void skipContentPatches(DataInput stream) throws IOException{ + int amount = stream.readUnsignedByte(); + for(int i = 0; i < amount; i++){ + int len = stream.readInt(); + stream.skipBytes(len); + } + } + public void readContentPatches(DataInput stream) throws IOException{ Seq patches = new Seq<>();