Compare commits

...
2 Commits
Author SHA1 Message Date
Alexdoru 4bbf1ee05e fix log file path (#28) 2026-03-30 23:34:47 -04:00
Alexdoru c0e567f326 Fix commands leaking server (#27) 2026-03-26 12:41:30 +01:00
2 changed files with 3 additions and 4 deletions

No files matched your search

@@ -98,8 +98,7 @@ public class MineTweakerMod {
new MCFormatter(), new MCFormatter(),
new MCVanilla()); new MCVanilla());
MineTweakerImplementationAPI.logger MineTweakerImplementationAPI.logger.addLogger(new FileLogger(new File("logs/minetweaker.log")));
.addLogger(new FileLogger(new File("logs" + File.pathSeparator + "minetweaker.log")));
MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE; MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE;
File globalDir = new File("scripts"); File globalDir = new File("scripts");
@@ -80,7 +80,7 @@ public class MCServer extends AbstractServer {
} }
} }
private class MCCommand implements ICommand { private static class MCCommand implements ICommand {
private final String name; private final String name;
private final String usage; private final String usage;
@@ -148,7 +148,7 @@ public class MCServer extends AbstractServer {
} }
} }
private class AddCommandAction implements IUndoableAction { private static class AddCommandAction implements IUndoableAction {
private final ICommand command; private final ICommand command;