mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
fix: don't warn on release build (#2369)
This commit is contained in:
parent
48be6ac94b
commit
8b39e41a1a
@ -59,7 +59,7 @@ public class UpdateNotification {
|
|||||||
Document doc = db.parse(body);
|
Document doc = db.parse(body);
|
||||||
faweVersion = doc.getElementsByTagName("lastSuccessfulBuild").item(0).getFirstChild().getTextContent();
|
faweVersion = doc.getElementsByTagName("lastSuccessfulBuild").item(0).getFirstChild().getTextContent();
|
||||||
FaweVersion faweVersion = Fawe.instance().getVersion();
|
FaweVersion faweVersion = Fawe.instance().getVersion();
|
||||||
if (faweVersion.build == 0) {
|
if (faweVersion.build == 0 && !faweVersion.snapshot) {
|
||||||
LOGGER.warn("You are using a snapshot or a custom version of FAWE. This is not an official build distributed " +
|
LOGGER.warn("You are using a snapshot or a custom version of FAWE. This is not an official build distributed " +
|
||||||
"via https://www.spigotmc.org/resources/13932/");
|
"via https://www.spigotmc.org/resources/13932/");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user