From 05a86452907b5db0038fd7a8c14e45e94fb5f089 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 15 Apr 2014 19:28:39 +1000 Subject: [PATCH] Allow non hidden update lock --- CraftBukkit-Patches/0129-Update-Warning.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0129-Update-Warning.patch b/CraftBukkit-Patches/0129-Update-Warning.patch index 27fef59aa1..7199b67b26 100644 --- a/CraftBukkit-Patches/0129-Update-Warning.patch +++ b/CraftBukkit-Patches/0129-Update-Warning.patch @@ -1,11 +1,11 @@ -From 4bf69ab03aa8a2ccd26342e71dbf9d81df55fd4f Mon Sep 17 00:00:00 2001 +From 2c1908bc333875cfb968785dd5ac8d620bbb0ebd Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 12 Apr 2014 21:37:12 +1000 Subject: [PATCH] Update Warning diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java -index 008e037..1bc6d4a 100644 +index 008e037..9bbc782 100644 --- a/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/src/main/java/org/bukkit/craftbukkit/Main.java @@ -1,7 +1,9 @@ @@ -26,7 +26,7 @@ index 008e037..1bc6d4a 100644 + public static void main(String[] args) throws IOException { + // Spigot Start + File lock = new File( ".update-lock" ); -+ if ( !lock.exists() && System.getProperty( "IReallyKnowWhatIAmDoingThisUpdate" ) == null ) ++ if ( !new File( "update-lock" ).exists() && !lock.exists() && System.getProperty( "IReallyKnowWhatIAmDoingThisUpdate" ) == null ) + { + BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) ); + String line;