1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

fix auto update

This commit is contained in:
Jeffrey 2023-11-24 18:49:34 +01:00
parent 7288cf3bf3
commit 087e985795
No known key found for this signature in database
GPG Key ID: 90F6887F79A113A3
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class UpdaterService {
if (version.contains("UNOFFICIAL")) {
// This Server is using a modified build that is not a public release.
branch = SlimefunBranch.UNOFFICIAL;
} else if (version.startsWith("DEV - ")) {
} else if (version.startsWith("Dev - ")) {
// If we are using a development build, we want to switch to our custom
try {
autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "Dev");

View File

@ -33,7 +33,7 @@ class TestUpdaterService {
@Test
@DisplayName("Test if the development branch is recognized correctly")
void testDevelopmentBuilds() {
UpdaterService service = new UpdaterService(plugin, "DEV - 131 (git 123456)", file);
UpdaterService service = new UpdaterService(plugin, "Dev - 131 (git 123456)", file);
Assertions.assertEquals(SlimefunBranch.DEVELOPMENT, service.getBranch());
Assertions.assertTrue(service.getBranch().isOfficial());
// Cannot currently be tested... yay