mac os x support (folder creation)

This commit is contained in:
Bixilon 2020-06-23 16:16:39 +02:00
parent 3edddf7f70
commit 341c29f8cf
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 6 additions and 1 deletions

View File

@ -85,6 +85,12 @@ public class Minosoft {
case WINDOWS:
path += "AppData/Roaming/Minosoft/";
break;
case MAC:
path += "Library/Application Support/Minosoft/";
break;
case OTHER:
path += ".minosoft/";
break;
//ToDo: Mac, Other
}
File folder = new File(path);

View File

@ -18,7 +18,6 @@ public class InPacketBuffer extends InByteBuffer {
public InPacketBuffer(byte[] bytes) {
super(bytes);
// ToDo: compression
command = readVarInt();
}