Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,38 @@ public MightyMinerConfig() {
subcategory = "Mithril Macro"
)
public static boolean mineTitanium = true;

@Number(
name = "Default Priority - Gray Mithril",
category = MINING_MACRO,
subcategory = "Mithril Priority",
min = 0, max = 30
)
public static int mithrilPriorityGrayDefault = 1;

@Number(
name = "Default Priority - Green Mithril",
category = MINING_MACRO,
subcategory = "Mithril Priority",
min = 0, max = 30
)
public static int mithrilPriorityGreenDefault = 3;

@Number(
name = "Default Priority - Blue Mithril",
category = MINING_MACRO,
subcategory = "Mithril Priority",
min = 0, max = 30
)
public static int mithrilPriorityBlueDefault = 6;

@Number(
name = "Default Priority - Titanium",
category = MINING_MACRO,
subcategory = "Mithril Priority",
min = 0, max = 30
)
public static int mithrilPriorityTitaniumDefault = 10;

//</editor-fold>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,12 @@ private void setBlocksToMineBasedOnOreType() {
private int[] determinePriority() {
if (MightyMinerConfig.oreType == 0) {
return new int[]{
MightyMinerConfig.mineGrayMithril ? 1 : 0,
MightyMinerConfig.mineGreenMithril ? 1 : 0,
MightyMinerConfig.mineBlueMithril ? 1 : 0,
MightyMinerConfig.mineTitanium ? 10 : 0
MightyMinerConfig.mineGrayMithril ? MightyMinerConfig.mithrilPriorityGrayDefault : 0,
MightyMinerConfig.mineGreenMithril ? MightyMinerConfig.mithrilPriorityGreenDefault : 0,
MightyMinerConfig.mineBlueMithril ? MightyMinerConfig.mithrilPriorityBlueDefault : 0,
MightyMinerConfig.mineTitanium ? MightyMinerConfig.mithrilPriorityTitaniumDefault : 0
};
}
return new int[]{1, 1, 1, 1};
}

}