mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Fix build due to spigot changing the build timestamp process
This commit is contained in:
parent
842e040c19
commit
00d760a537
1 changed files with 14 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
From 734a32b574ec0430f7f2541b687c0a01f5481b07 Mon Sep 17 00:00:00 2001
|
From b00609242621c3d19cfd2d442f196474f97509f4 Mon Sep 17 00:00:00 2001
|
||||||
From: Zach Brown <zach.brown@destroystokyo.com>
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
||||||
Date: Mon, 29 Feb 2016 20:40:33 -0600
|
Date: Mon, 29 Feb 2016 20:40:33 -0600
|
||||||
Subject: [PATCH] POM Changes
|
Subject: [PATCH] POM Changes
|
||||||
|
@ -156,6 +156,19 @@ index 9fc92e347f..6cc18aa360 100644
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- we need our custom version as it fixes some bugs on case sensitive file systems -->
|
<!-- we need our custom version as it fixes some bugs on case sensitive file systems -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||||
|
index 88223a53cb..cb5d0f5378 100644
|
||||||
|
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||||
|
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||||
|
@@ -186,7 +186,7 @@ public class Main {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||||
|
- Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
|
||||||
|
+ Date buildDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(Main.class.getPackage().getImplementationVendor()); // Paper
|
||||||
|
|
||||||
|
Calendar deadline = Calendar.getInstance();
|
||||||
|
deadline.add(Calendar.DAY_OF_YEAR, -21);
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
||||||
index 93046379d0..674096cab1 100644
|
index 93046379d0..674096cab1 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
--- a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
||||||
|
|
Loading…
Reference in a new issue