Skip to content

Commit

Permalink
Add vanilla dusts to dustRegular
Browse files Browse the repository at this point in the history
  • Loading branch information
warjort committed May 27, 2021
1 parent 32bc0f3 commit fe74783
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gregtech/api/items/materialitem/MaterialMetaItem.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void registerOreDict() {
ItemStack item = new ItemStack(this, 1, metaItem);
OreDictUnifier.registerOre(item, prefix, material);
if(prefix.name().equals("dust"))
OreDictUnifier.registerOre(item, "dustRegular", material);
OreDictUnifier.registerOre(item, OrePrefix.DUST_REGULAR, material);

items.add(item);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/gregtech/api/unification/ore/OrePrefix.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public enum OrePrefix {
circuit("Circuits", -1, null, null, ENABLE_UNIFICATION | DISALLOW_RECYCLING, null), // Introduced by Calclavia
chipset("Chipsets", -1, null, null, ENABLE_UNIFICATION | DISALLOW_RECYCLING, null); // Introduced by Buildcraft

public static final String DUST_REGULAR = "dustRegular";

public static class Flags {
public static final long ENABLE_UNIFICATION = GTUtility.createFlag(0);
public static final long SELF_REFERENCING = GTUtility.createFlag(1);
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/gregtech/loaders/OreDictionaryLoader.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,19 @@ public static void init() {
OreDictUnifier.registerOre(new ItemStack(Items.IRON_INGOT), OrePrefix.ingot, Materials.Iron);
OreDictUnifier.registerOre(new ItemStack(Items.PAPER), OrePrefix.plate, Materials.Paper);
OreDictUnifier.registerOre(new ItemStack(Items.SUGAR), OrePrefix.dust, Materials.Sugar);
OreDictUnifier.registerOre(new ItemStack(Items.SUGAR), OrePrefix.DUST_REGULAR, Materials.Sugar);
OreDictUnifier.registerOre(new ItemStack(Items.STICK), OrePrefix.stick, Materials.Wood);
OreDictUnifier.registerOre(new ItemStack(Items.REDSTONE), OrePrefix.dust, Materials.Redstone);
OreDictUnifier.registerOre(new ItemStack(Items.REDSTONE), OrePrefix.DUST_REGULAR, Materials.Redstone);
OreDictUnifier.registerOre(new ItemStack(Items.GUNPOWDER), OrePrefix.dust, Materials.Gunpowder);
OreDictUnifier.registerOre(new ItemStack(Items.GUNPOWDER), OrePrefix.DUST_REGULAR, Materials.Gunpowder);
OreDictUnifier.registerOre(new ItemStack(Items.GLOWSTONE_DUST), OrePrefix.dust, Materials.Glowstone);
OreDictUnifier.registerOre(new ItemStack(Items.GLOWSTONE_DUST), OrePrefix.DUST_REGULAR, Materials.Glowstone);
OreDictUnifier.registerOre(new ItemStack(Items.DYE, 1, 15), OrePrefix.dust, Materials.Bone);
OreDictUnifier.registerOre(new ItemStack(Items.DYE, 1, 15), OrePrefix.DUST_REGULAR, Materials.Bone);
OreDictUnifier.registerOre(new ItemStack(Items.BONE), OrePrefix.stick, Materials.Bone);
OreDictUnifier.registerOre(new ItemStack(Items.BLAZE_POWDER), OrePrefix.dust, Materials.Blaze);
OreDictUnifier.registerOre(new ItemStack(Items.BLAZE_POWDER), OrePrefix.DUST_REGULAR, Materials.Blaze);
OreDictUnifier.registerOre(new ItemStack(Items.BLAZE_ROD), OrePrefix.stick, Materials.Blaze);
OreDictUnifier.registerOre(new ItemStack(Blocks.IRON_BLOCK), OrePrefix.block, Materials.Iron);
OreDictUnifier.registerOre(new ItemStack(Blocks.GOLD_BLOCK), OrePrefix.block, Materials.Gold);
Expand Down

0 comments on commit fe74783

Please sign in to comment.