mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
BUILDTOOLS-114 / MC-80817 : Fix server not starting when native processor info cannot be initialized.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
988a6357c8
commit
5e6f5eeb0d
1 changed files with 11 additions and 0 deletions
11
paper-server/nms-patches/SystemUtils.patch
Normal file
11
paper-server/nms-patches/SystemUtils.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/net/minecraft/server/SystemUtils.java
|
||||
+++ b/net/minecraft/server/SystemUtils.java
|
||||
@@ -32,7 +32,7 @@
|
||||
Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors();
|
||||
|
||||
SystemUtils.a = String.format("%dx %s", new Object[] { Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");
|
||||
- } catch (Exception exception) {
|
||||
+ } catch (Throwable exception) {
|
||||
;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue