Skip to content

Commit 63d1d84

Browse files
committed
Update dependencies
1 parent 6e4c57c commit 63d1d84

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ version = "1.0-SNAPSHOT"
77
description = "Banner waypoints for HoloCons"
88

99
java {
10-
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
11-
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
10+
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
1211
}
1312

1413
repositories {
@@ -17,8 +16,8 @@ repositories {
1716
}
1817

1918
dependencies {
20-
compileOnly("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT")
21-
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
19+
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
20+
compileOnly("com.comphenix.protocol:ProtocolLib:5.3.0")
2221
}
2322

2423
tasks {
@@ -27,7 +26,7 @@ tasks {
2726

2827
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
2928
// See https://openjdk.java.net/jeps/247 for more information.
30-
options.release.set(17)
29+
options.release.set(21)
3130
}
3231
javadoc {
3332
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
@@ -40,7 +39,7 @@ tasks {
4039
"name" to project.name,
4140
"version" to project.version,
4241
"description" to project.description,
43-
"apiVersion" to "1.19",
42+
"apiVersion" to "1.21.1",
4443
"authors" to listOf("dlee13"),
4544
"website" to "holocons.xyz",
4645
"depend" to listOf("ProtocolLib"),

src/main/java/xyz/holocons/mc/waypoints/HologramMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void remove(Player player) {
9999
}
100100

101101
private static Collection<Player> getTrackedPlayers(Player player) {
102-
final var players = player.getTrackedPlayers();
102+
final var players = player.getTrackedBy();
103103
players.add(player);
104104
return players;
105105
}

src/main/java/xyz/holocons/mc/waypoints/Waypoint.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public class Waypoint {
3232
MISSING_BANNER_ITEMSTACK = new ItemStack(Material.WHITE_BANNER);
3333
var bannerMeta = (BannerMeta) MISSING_BANNER_ITEMSTACK.getItemMeta();
3434
bannerMeta.addPattern(new Pattern(DyeColor.BLACK, PatternType.STRIPE_TOP));
35-
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.RHOMBUS_MIDDLE));
35+
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.RHOMBUS));
3636
bannerMeta.addPattern(new Pattern(DyeColor.BLACK, PatternType.STRIPE_DOWNLEFT));
37-
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.HALF_HORIZONTAL_MIRROR));
37+
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.HALF_HORIZONTAL_BOTTOM));
3838
bannerMeta.addPattern(new Pattern(DyeColor.BLACK, PatternType.TRIANGLE_BOTTOM));
3939
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.STRIPE_MIDDLE));
4040
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.STRIPE_BOTTOM));
4141
bannerMeta.addPattern(new Pattern(DyeColor.WHITE, PatternType.BORDER));
42-
bannerMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ITEM_SPECIFICS);
42+
bannerMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ADDITIONAL_TOOLTIP);
4343
bannerMeta.displayName(UNNAMED_WAYPOINT_COMPONENT);
4444
MISSING_BANNER_ITEMSTACK.setItemMeta(bannerMeta);
4545
}
@@ -103,7 +103,7 @@ private static ItemStack getBannerItem(Location location) {
103103
private static ItemStack getDisplayItem(Location location) {
104104
var itemStack = getBannerItem(location);
105105
var itemMeta = itemStack.getItemMeta();
106-
itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ITEM_SPECIFICS);
106+
itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ADDITIONAL_TOOLTIP);
107107
if (itemMeta.hasDisplayName()) {
108108
itemMeta.displayName(itemMeta.displayName().decoration(TextDecoration.ITALIC, false));
109109
}

src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
main: ${main}
22
name: ${name}
3-
version: ${version}
3+
version: '${version}'
44
description: ${description}
5-
api-version: ${apiVersion}
5+
api-version: '${apiVersion}'
66
authors: ${authors}
77
website: ${website}
88
depend: ${depend}

0 commit comments

Comments
 (0)