lead poisoning, brain no work :(

This commit is contained in:
Bob 2023-04-03 20:38:30 +02:00
parent 0135b66884
commit 029c2f226f

View File

@ -32,11 +32,12 @@ public class AnvilSmithingMold extends AnvilSmithingRecipe {
if(matchesPrefix != null && left.stackSize == matchesPrefix.stacksize) {
List<String> names = ItemStackUtil.getOreDictNames(left);
outer:
for(String name : names) {
for(String otherPrefix : OreNames.prefixes) {
if(otherPrefix.length() > matchesPrefix.name.length() && name.startsWith(otherPrefix)) {
continue; //ignore if there's a longer prefix that matches (i.e. a more accurate match)
continue outer; //ignore if there's a longer prefix that matches (i.e. a more accurate match)
}
}