Compare commits

...
6 Commits
Author SHA1 Message Date
Martin Robertz fd8f454634 update 2026-04-27 13:33:27 +02:00
UltraProdigy ce61f59753 Optimize Images & Workflow (#29) 2026-04-26 08:41:39 +02:00
Martin Robertz 8820bbbd57 update 2026-04-03 17:06:01 +02:00
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
Alexdoru db6a83b2c0 Fix memory leak in MTLogger (#26) 2026-03-23 22:49:50 +01:00
7 changed files with 33 additions and 12 deletions

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
name: Optimize images
on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
+1 -1
View File
@@ -1,5 +1,5 @@
dependencies { dependencies {
shadowImplementation("com.github.GTNewHorizons:ZenScript:1.0.1-GTNH") shadowImplementation("com.github.GTNewHorizons:ZenScript:1.0.1-GTNH")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.75-GTNH:dev") implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev")
compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
} }
+7 -7
View File
@@ -1,12 +1,12 @@
#This file is generated by updateDaemonJvm #This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/e1118b4c7c2858d28154d086dbff010e/redirect toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c2dd35c9d0aaf0ba6ad0791320f99dfc/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/59a9771cad43219260d9aac9a8ec4d6a/redirect toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/e5810bd7fd1f8a586644409d395a7e55/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/b96cb7670c095245220e7d01d5927b58/redirect toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7b3c4877c0749019e6805bb61e421497/redirect
toolchainVendor=ADOPTIUM toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
toolchainVersion=25 toolchainVersion=25
@@ -38,6 +38,10 @@ public class MTLogger implements ILogger {
unprocessed.clear(); unprocessed.clear();
} }
public void clearPlayers() {
players.clear();
}
@Override @Override
public void logCommand(String message) { public void logCommand(String message) {
for (ILogger logger : loggers) { for (ILogger logger : loggers) {
@@ -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");
@@ -192,5 +191,6 @@ public class MineTweakerMod {
public void onServerStopped(FMLServerStoppedEvent ev) { public void onServerStopped(FMLServerStoppedEvent ev) {
MineTweakerImplementationAPI.onServerStop(); MineTweakerImplementationAPI.onServerStop();
MineTweakerImplementationAPI.setScriptProvider(scriptsGlobal); MineTweakerImplementationAPI.setScriptProvider(scriptsGlobal);
MineTweakerImplementationAPI.logger.clearPlayers();
} }
} }
@@ -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;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB