mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Clean up client source
This commit is contained in:
@@ -18,11 +18,11 @@ public class WorldConverterEPK {
|
||||
while((f = dc.readFile()) != null) {
|
||||
byte[] b = f.data;
|
||||
if(!hasReadType) {
|
||||
if(f.type.equals("HEAD") && f.name.equals("file-type") && EPKDecompiler.readASCII(f.data).equals("epk/world152")) {
|
||||
if(f.type.equals("HEAD") && f.name.equals("file-type") && EPKDecompiler.readASCII(f.data).equals("epk/world164")) {
|
||||
hasReadType = true;
|
||||
continue;
|
||||
}else {
|
||||
throw new IOException("file does not contain a singleplayer 1.5.2 world!");
|
||||
throw new IOException("file does not contain a singleplayer 1.6.4 world!");
|
||||
}
|
||||
}
|
||||
if(f.type.equals("FILE")) {
|
||||
@@ -64,7 +64,7 @@ public class WorldConverterEPK {
|
||||
final int[] bytesWritten = new int[1];
|
||||
final int[] lastUpdate = new int[1];
|
||||
String pfx = "worlds/" + realWorldName + "/";
|
||||
EPK2Compiler c = new EPK2Compiler(realWorldName, worldOwner, "epk/world152");
|
||||
EPK2Compiler c = new EPK2Compiler(realWorldName, worldOwner, "epk/world164");
|
||||
SYS.VFS.iterateFiles(pfx, false, (i) -> {
|
||||
byte[] b = i.getAllBytes();
|
||||
c.append(i.path.substring(pfx.length()), b);
|
||||
|
||||
@@ -565,7 +565,7 @@ public abstract class MinecraftServer implements ICommandSender, Runnable {
|
||||
* Returns the server's Minecraft version as string.
|
||||
*/
|
||||
public String getMinecraftVersion() {
|
||||
return "1.5.2";
|
||||
return "1.6.4";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user