Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
XDPXI committed Nov 18, 2024
1 parent 3b7c224 commit 05444f9
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 155 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx8G
org.gradle.parallel=true

mod_version=3.0.0
mod_version=3.0.1
maven_group=dev.xdpxi
archives_base_name=xdlib
Binary file modified installer/versions/1.21/bukkit.jar
Binary file not shown.
Binary file modified installer/versions/1.21/bungee.jar
Binary file not shown.
Binary file modified installer/versions/1.21/fabric.jar
Binary file not shown.
Binary file modified installer/versions/1.21/neo.jar
Binary file not shown.
Binary file modified installer/versions/1.21/velo.jar
Binary file not shown.
112 changes: 0 additions & 112 deletions src/client/java/dev/xdpxi/xdlib/CustomScreen.java

This file was deleted.

54 changes: 15 additions & 39 deletions src/client/java/dev/xdpxi/xdlib/mixin/client/TitleScreenMixin.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.xdpxi.xdlib.mixin.client;

import dev.xdpxi.xdlib.CustomScreen;
import dev.xdpxi.xdlib.config.changelogConfig;
import dev.xdpxi.xdlib.config.configManager;
import dev.xdpxi.xdlib.support;
Expand All @@ -22,7 +21,7 @@ public class TitleScreenMixin {
private static boolean Shown = false;

@Unique
private static int version = 11;
private static int version = 12;

@Inject(method = "init", at = @At("TAIL"))
public void onInit(CallbackInfo ci) {
Expand All @@ -34,46 +33,23 @@ public void onInit(CallbackInfo ci) {
boolean disableChangelog = configManager.configData.isDisableChangelog();

if (((firstStartup || changelogEveryStartup) && !Shown) && !disableChangelog) {
CompletableFuture.supplyAsync(() -> {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
return 0;
}).thenAcceptAsync(result -> {
Shown = true;

changelogConfig.ConfigData configData = config.read();
configData.setVersion(version);
config.write(configData);

MinecraftClient client = MinecraftClient.getInstance();
Screen currentScreen = client.currentScreen;

client.execute(() -> client.setScreen(new CustomScreen(Text.empty(), currentScreen)));
}, MinecraftClient.getInstance());
// do nothing
} else {
if (!Shown) {
showPopups();
CompletableFuture.supplyAsync(() -> {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
return 0;
}).thenAcceptAsync(result -> {
Shown = true;
MinecraftClient client = MinecraftClient.getInstance();
Screen currentScreen = client.currentScreen;
client.execute(() -> client.setScreen(new support(Text.empty(), currentScreen)));
}, MinecraftClient.getInstance());
}
}
}

@Unique
private void showPopups() {
CompletableFuture.supplyAsync(() -> {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
return 0;
}).thenAcceptAsync(result -> {
Shown = true;
MinecraftClient client = MinecraftClient.getInstance();
Screen currentScreen = client.currentScreen;
client.execute(() -> client.setScreen(new support(Text.empty(), currentScreen)));
}, MinecraftClient.getInstance());
}
}
2 changes: 1 addition & 1 deletion src/main/java/dev/xdpxi/xdlib/plugin/velocity.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import java.nio.file.Path;

@Plugin(id = "xdlib", name = "XDLib", version = "3.0.0", description = "This is a library for many uses and is included as an player counter for XDPXI's mods and modpacks!", url = "https://xdpxi.vercel.app/mc/xdlib", authors = {"XDPXI"})
@Plugin(id = "xdlib", name = "XDLib", version = "3.0.1", description = "This is a library for many uses and is included as an player counter for XDPXI's mods and modpacks!", url = "https://xdpxi.vercel.app/mc/xdlib", authors = {"XDPXI"})
public class velocity {
private final Logger logger;
private final ProxyServer proxyServer;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: XDLib
version: '3.0.0'
version: '3.0.1'
main: dev.xdpxi.xdlib.plugin.bungee
author: XDPXI
description: This is a library for many uses and is included as an player counter for XDPXI's mods and modpacks!
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: XDLib
version: '3.0.0'
version: '3.0.1'
main: dev.xdpxi.xdlib.plugin.xdlib
api-version: '1.21'
prefix: XDLib
Expand Down

0 comments on commit 05444f9

Please sign in to comment.