mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-15 07:01:36 +08:00
Allow non hidden update lock
This commit is contained in:
parent
9360048150
commit
05a8645290
@ -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 <git@md-5.net>
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user