mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-22 03:45:10 +01:00
Separate the dispatch and game servers (pt. 2)
this commit fixes the gacha page
This commit is contained in:
@@ -129,7 +129,7 @@ public final class HttpServer {
|
||||
@SuppressWarnings("UnusedReturnValue")
|
||||
public HttpServer addRouter(Class<? extends Router> router, Object... args) {
|
||||
// Get all constructor parameters.
|
||||
Class<?>[] types = new Class<?>[args.length];
|
||||
var types = new Class<?>[args.length];
|
||||
for (var argument : args)
|
||||
types[args.length - 1] = argument.getClass();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user