Skip to content

Commit 3077d8a

Browse files
committed
allow for 1.21.4 compatibility
1 parent 3bc850d commit 3077d8a

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ modrinth {
139139
versionType.set("release") // TODO: Automatically determine this from the version
140140
uploadFile.set(tasks.shadowJar) // Use the shadowed jar !!
141141
changelog.set(System.getenv("CHANGELOG"))
142-
gameVersions.addAll("1.21.5") // Must be an array, even with only one version
142+
gameVersions.addAll("1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8") // Must be an array, even with only one version
143143
loaders.addAll("bukkit", "spigot", "paper", "purpur") // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
144144
}

core/src/main/java/com/wolfyscript/utilities/bukkit/world/items/reference/StackReference.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ public static StackReference of(ItemStack itemStack) {
6060
return new StackReference(WolfyUtilCore.getInstance(), itemStack.getAmount(), 1, new BukkitStackIdentifier(itemStack), itemStack);
6161
}
6262

63-
/**
64-
* @deprecated use {@link StackReference#StackReference(WolfyUtilCore, int, double, StackIdentifier, ItemStack)} instead!
65-
*/
66-
@Deprecated
67-
public StackReference(@NotNull WolfyUtilCore core, @NotNull StackIdentifier identifier, double weight, int amount, @Nullable ItemStack itemStack) {
68-
this(core, amount, weight, identifier, itemStack);
69-
}
70-
71-
@Deprecated
72-
public StackReference(@NotNull WolfyUtilCore core, @NotNull NamespacedKey parserKey, int amount, double weight, @Nullable ItemStack item) {
73-
this(core, amount, weight, parserKey, item);
74-
}
75-
7663
public StackReference(@NotNull WolfyUtilCore core, int amount, double weight, @NotNull StackIdentifier identifier, @Nullable ItemStack itemStack) {
7764
this.core = core;
7865
this.amount = amount;

core/src/main/java/me/wolfyscript/utilities/api/inventory/custom_items/ParticleContent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public ParticleAnimation getByEquipmentSlot(EquipmentSlot equipmentSlot) {
258258
case FEET -> getFeet();
259259
case HAND -> getMainHand();
260260
case OFF_HAND -> getOffHand();
261-
case SADDLE, BODY -> null;
261+
default -> null;
262262
};
263263
}
264264

0 commit comments

Comments
 (0)