Skip to content

Commit

Permalink
make addOrePrefix take varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Aug 12, 2021
1 parent afe3e35 commit c1e9780
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/gregtech/common/items/MetaItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public final class MetaItems {
Expand Down Expand Up @@ -587,7 +588,7 @@ private static void registerSpecialItemModel(ModelBakeEvent event, MetaValueItem
}

@SuppressWarnings("unused")
public static void addOrePrefix(OrePrefix orePrefix) {
orePrefixes.add(orePrefix);
public static void addOrePrefix(OrePrefix... prefixes) {
orePrefixes.addAll(Arrays.asList(prefixes));
}
}

0 comments on commit c1e9780

Please sign in to comment.