Clean up client source

This commit is contained in:
catfoolyou
2025-03-22 14:52:41 -04:00
parent 1d659d2493
commit f29a2ff38a
53 changed files with 36188 additions and 52732 deletions

View File

@@ -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);

View File

@@ -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";
}
/**