From aace85c5d995273dd3a05ee519117831fca874dc Mon Sep 17 00:00:00 2001 From: ojcastillo29 <43732001+ojcastillo29@users.noreply.github.com> Date: Fri, 5 Nov 2021 09:10:27 -0600 Subject: [PATCH] Allowing Legendaries to be read in configuration. Twas a List now is a Set, we now grab names so we can make legends pricey. --- .../java/net/impactdev/gts/reforged/entry/ReforgedEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reforged/src/main/java/net/impactdev/gts/reforged/entry/ReforgedEntry.java b/reforged/src/main/java/net/impactdev/gts/reforged/entry/ReforgedEntry.java index 1622202..203219f 100644 --- a/reforged/src/main/java/net/impactdev/gts/reforged/entry/ReforgedEntry.java +++ b/reforged/src/main/java/net/impactdev/gts/reforged/entry/ReforgedEntry.java @@ -284,7 +284,7 @@ public double getMax() { private enum MinimumPriceCalculator { LEGENDARY(ReforgedConfigKeys.MIN_PRICING_LEGEND_ENABLED, ReforgedConfigKeys.MIN_PRICING_LEGEND_PRICE, (pokemon, key, current) -> { - if(EnumSpecies.legendaries.contains(pokemon.getSpecies().getPokemonName())) { + if(EnumSpecies.legendaries.toString().contains(pokemon.getSpecies().getPokemonName())) { return GTSSpongeReforgedPlugin.getInstance().getConfiguration().get(key) + current; }