Enhance transactional support with savepoints, improve error handling for nested exceptions, and provide better rollback mechanisms. Update tests to validate savepoint behavior and add new test cases for mod errors, task execution, and server configuration. Expand Gradle tasks to generate admin passwords, preserve configs during deployment, and support custom server addresses.
This commit is contained in:
1 parent
26ca1b90a2
commit
67530d35e9
14 files changed
+271
-52
No files matched your search
+4
-4
@@ -75,7 +75,7 @@ public final class ServerHooks
|
||||
ForgeInstance.FORGE.started();
|
||||
System.out.println("[ZomboidForge] Server started (ZomboidForge " + ZomboidForge.VERSION + ").");
|
||||
}
|
||||
catch (RuntimeException e) { e.printStackTrace(); }
|
||||
catch (Throwable t) { t.printStackTrace(); }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,8 +86,8 @@ public final class ServerHooks
|
||||
*/
|
||||
public static void onTick()
|
||||
{
|
||||
try { ForgeInstance.FORGE.tick(); }
|
||||
catch (RuntimeException e) { e.printStackTrace(); }
|
||||
try { ForgeInstance.FORGE.tick(); }
|
||||
catch (Throwable t) { t.printStackTrace(); }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -105,6 +105,6 @@ public final class ServerHooks
|
||||
System.out.println("[ZomboidForge] Server stopping.");
|
||||
ForgeInstance.FORGE.stopping();
|
||||
}
|
||||
catch (RuntimeException e) { e.printStackTrace(); }
|
||||
catch (Throwable t) { t.printStackTrace(); }
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -20,6 +20,6 @@ public final class StorageHooks
|
||||
if (running) ForgeInstance.FORGE.backupStarted();
|
||||
else ForgeInstance.FORGE.backupFinished();
|
||||
}
|
||||
catch (RuntimeException e) { e.printStackTrace(); }
|
||||
catch (Throwable t) { t.printStackTrace(); }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user