From 3313cfaefad52c1313290f3ce13bbe181df5de94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Eisenbl=C3=A4tter?= Date: Fri, 1 Nov 2024 18:58:17 +0100 Subject: [PATCH] fix: idea warnings --- .../src/main/java/net/imprex/orebfuscator/UpdateSystem.java | 3 ++- .../chunk/WrappedClientboundLevelChunkPacketData.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/UpdateSystem.java b/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/UpdateSystem.java index c039bf9f..3b6ef3f0 100644 --- a/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/UpdateSystem.java +++ b/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/UpdateSystem.java @@ -22,6 +22,7 @@ import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.ComponentBuilder; import net.md_5.bungee.api.chat.HoverEvent; +import net.md_5.bungee.api.chat.hover.content.Text; public class UpdateSystem { @@ -128,7 +129,7 @@ public void checkForUpdates(Player player) { BaseComponent[] components = new ComponentBuilder("[§bOrebfuscator§f]§7 A new release is available ") .append("§f§l[CLICK HERE]") .event(new ClickEvent(ClickEvent.Action.OPEN_URL, this.getHtmlUrl())) - .event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§7Click here to see the latest release").create())).create(); + .event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder("§7Click here to see the latest release").create()))).create(); OrebfuscatorCompatibility.runForPlayer(player, () -> { player.spigot().sendMessage(components); }); diff --git a/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/chunk/WrappedClientboundLevelChunkPacketData.java b/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/chunk/WrappedClientboundLevelChunkPacketData.java index b81b4ba9..d634e58b 100644 --- a/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/chunk/WrappedClientboundLevelChunkPacketData.java +++ b/orebfuscator-plugin/src/main/java/net/imprex/orebfuscator/chunk/WrappedClientboundLevelChunkPacketData.java @@ -10,7 +10,6 @@ import com.comphenix.protocol.utility.MinecraftReflection; import net.imprex.orebfuscator.util.BlockPos; -import net.imprex.orebfuscator.util.ServerVersion; public class WrappedClientboundLevelChunkPacketData {