Skip to content

Commit

Permalink
Failed Dust Stacking (#790)
Browse files Browse the repository at this point in the history
* Stack Failed Dust
Remove the unused data that was added to failed dust to make it so that they can be stacked.
  • Loading branch information
TrueDarkLord committed Feb 19, 2024
1 parent 8329cf4 commit 68f8c50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ issues = https://github.com/Crazy-Crew/CrazyEnchantments/issues

group = com.badbones69.crazyenchantments
description = Adds over 80 unique enchantments to your server and more!
version = 2.2.4
version = 2.2.5
apiVersion = 1.20

minecraftVersion = 1.20.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Objects;

public enum Dust {

Expand Down Expand Up @@ -93,6 +94,8 @@ public ItemStack getDust(int amount) {
public ItemStack getDust(int percent, int amount) {
ItemStack item = itemBuilderDust.get(this).addLorePlaceholder("%Percent%", String.valueOf(percent)).setAmount(amount).build();

if (Objects.equals(getName(), FAILED_DUST.getName())) return item;

// PDC Start
Gson gson = new Gson();

Expand Down

0 comments on commit 68f8c50

Please sign in to comment.