mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +01:00
Fix thread count stuck to 1
This commit is contained in:
parent
6a712b33a0
commit
93360d7e1b
@ -826,6 +826,6 @@ public final class MinecraftServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int getThreadCount(@NotNull String property, int count) {
|
private static int getThreadCount(@NotNull String property, int count) {
|
||||||
return Integer.getInteger(property, Math.min(1, count));
|
return Integer.getInteger(property, Math.max(1, count));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user