From cae282f9a5c8b7ef0466654baf9b3aa0a7a608b7 Mon Sep 17 00:00:00 2001 From: Mgazul Date: Tue, 3 Sep 2024 02:02:58 +0800 Subject: [PATCH] Fix build --- build.gradle | 2 +- src/main/java/org/bukkit/craftbukkit/Main.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 2e64ecea92..192be3b11c 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder import org.objectweb.asm.ClassReader plugins { - id 'org.ajoberstar.grgit' version '3.1.1' + id 'org.ajoberstar.grgit' version '4.1.1' id 'de.undercouch.download' version '3.3.0' id 'com.github.ben-manes.versions' version '0.22.0' id 'eclipse' diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java index 1f100a763e..ed216b5b46 100644 --- a/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/src/main/java/org/bukkit/craftbukkit/Main.java @@ -162,7 +162,7 @@ public static OptionSet main(String[] args) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, ex.getLocalizedMessage()); } - if ((options == null) || (options.has("?"))) { + if ((options == null) || (options.has("?") || (options.has("help"))) { try { parser.printHelpOn(System.out); } catch (IOException ex) {