Skip to content

Commit

Permalink
update mixin again
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 5, 2024
1 parent f3158a9 commit 2dcfd33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;

@Mixin(value = DedicatedServer.class, priority = 100000000)
@Mixin(value = DedicatedServer.class, priority = Integer.MAX_VALUE)
public abstract class DedicatedServerMixin {
@Shadow @Final static Logger LOGGER;

Expand Down Expand Up @@ -56,7 +56,7 @@ public abstract class DedicatedServerMixin {

if ("true".equalsIgnoreCase(System.getProperty("railwaystweaks.shutdown.forcefully"))) {
RailwaysTweaks.LOGGER.info("Force shutting down server, threads will be stuck");
System.exit(0);
Runtime.getRuntime().halt(0);
}
}
}

0 comments on commit 2dcfd33

Please sign in to comment.