2013-04-03 09:20:29 +02:00
|
|
|
From 54e97bc4f6af0326c9eaea5f88c52b86307d6b88 Mon Sep 17 00:00:00 2001
|
2013-01-15 05:06:20 +01:00
|
|
|
From: md_5 <md_5@bigpond.com>
|
|
|
|
Date: Tue, 15 Jan 2013 15:05:02 +1100
|
2013-01-19 09:22:25 +01:00
|
|
|
Subject: [PATCH] Update versioning check to correctly resolve api version.
|
2013-01-15 05:06:20 +01:00
|
|
|
|
|
|
|
---
|
2013-04-03 09:20:29 +02:00
|
|
|
.../org/bukkit/craftbukkit/util/Versioning.java | 2 +-
|
|
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
2013-01-15 05:06:20 +01:00
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
index f905d17..9304637 100644
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/Versioning.java
|
|
|
|
@@ -11,7 +11,7 @@ public final class Versioning {
|
|
|
|
public static String getBukkitVersion() {
|
|
|
|
String result = "Unknown-Version";
|
|
|
|
|
|
|
|
- InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/org.bukkit/bukkit/pom.properties");
|
|
|
|
+ InputStream stream = Bukkit.class.getClassLoader().getResourceAsStream("META-INF/maven/org.spigotmc/spigot-api/pom.properties");
|
|
|
|
Properties properties = new Properties();
|
|
|
|
|
|
|
|
if (stream != null) {
|
|
|
|
--
|
2013-04-03 09:20:29 +02:00
|
|
|
1.7.0.4
|
2013-01-15 05:06:20 +01:00
|
|
|
|