Player saveWrite tweaks

This commit is contained in:
Anuken
2018-04-17 08:57:30 -04:00
parent 0bebe5008b
commit 7f2a0a77c7
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
#Autogenerated file. Do not modify. #Autogenerated file. Do not modify.
#Mon Apr 16 22:45:45 EDT 2018 #Mon Apr 16 22:47:36 EDT 2018
version=release version=release
androidBuildCode=932 androidBuildCode=932
name=Mindustry name=Mindustry

View File

@@ -315,7 +315,10 @@ public class Player extends Unit{
@Override @Override
public void writeSave(DataOutputStream stream) throws IOException { public void writeSave(DataOutputStream stream) throws IOException {
stream.writeBoolean(isLocal); stream.writeBoolean(isLocal);
if(isLocal) super.writeSave(stream);
if(isLocal){
super.writeSave(stream);
}
} }
@Override @Override