From f24e830765e61b579c5a9c7e3e639ffc9ba4e5d5 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 7 Sep 2021 18:36:47 +0100 Subject: [PATCH 1/2] Registered shards and crystals with eco --- .../src/main/java/com/willfp/ecoarmor/sets/ArmorSet.java | 6 ++++++ .../src/main/java/com/willfp/ecoarmor/upgrades/Tier.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/sets/ArmorSet.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/sets/ArmorSet.java index 9e5c5a5..b6e9bc9 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/sets/ArmorSet.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/sets/ArmorSet.java @@ -186,6 +186,12 @@ public class ArmorSet { this.getConfig().getStrings("shardRecipe")); } + new CustomItem( + this.getPlugin().getNamespacedKeyFactory().create("shard_" + name.toLowerCase()), + test -> this.equals(ArmorUtils.getShardSet(test)), + shard + ).register(); + return shard; } diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tier.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tier.java index 4f76c48..29f66e8 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tier.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoarmor/upgrades/Tier.java @@ -131,6 +131,12 @@ public class Tier extends PluginDependent { )); } + new CustomItem( + this.getPlugin().getNamespacedKeyFactory().create("crystal_" + name.toLowerCase()), + test -> this.equals(ArmorUtils.getCrystalTier(test)), + out + ).register(); + if (this.isCraftable()) { ItemStack recipeOut = out.clone(); recipeOut.setAmount(this.getConfig().getInt("crystal.giveAmount")); From ca85f9fe284d45c04170e479fc9c6ca9005820a9 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 7 Sep 2021 18:37:05 +0100 Subject: [PATCH 2/2] Updated to 5.4.0 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 3e940e4..aa79620 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 5.3.1 +version = 5.4.0 plugin-name = EcoArmor \ No newline at end of file