From 5e6f5eeb0d797ed8a4c2c86ef695bef77b3bfbf3 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 29 May 2015 15:23:52 +1000 Subject: [PATCH] BUILDTOOLS-114 / MC-80817 : Fix server not starting when native processor info cannot be initialized. By: md_5 --- paper-server/nms-patches/SystemUtils.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/nms-patches/SystemUtils.patch diff --git a/paper-server/nms-patches/SystemUtils.patch b/paper-server/nms-patches/SystemUtils.patch new file mode 100644 index 0000000000..2ce12c015b --- /dev/null +++ b/paper-server/nms-patches/SystemUtils.patch @@ -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) { + ; + } +