This commit is contained in:
Anuken
2020-07-30 10:51:43 -04:00
parent bc8f02666a
commit c3a073fbbf
10 changed files with 119 additions and 39 deletions

View File

@@ -66,7 +66,7 @@ public abstract class LegacySaveVersion extends SaveVersion{
readChunk(stream, true, in -> {
byte version = in.readByte();
//legacy impl of Building#read()
tile.build.health(stream.readUnsignedShort());
tile.build.health = stream.readUnsignedShort();
byte packedrot = stream.readByte();
byte team = Pack.leftByte(packedrot) == 8 ? stream.readByte() : Pack.leftByte(packedrot);
byte rotation = Pack.rightByte(packedrot);