Give ore Achievements from all ore stone types

This commit is contained in:
Blood-Asp 2016-10-17 00:03:05 +02:00 committed by Technus
parent 14304fceb8
commit e957422390

View file

@ -494,8 +494,7 @@ public class GT_Achievements {
if(data.mMaterial.mMaterial != Materials.Gunpowder){ if(data.mMaterial.mMaterial != Materials.Gunpowder){
issueAchievement(player, "cleandust"); issueAchievement(player, "cleandust");
} }
} else if (data.mPrefix == OrePrefixes.ore || data.mPrefix == OrePrefixes.oreBlackgranite || data.mPrefix == OrePrefixes.oreEndstone } else if (data.mPrefix.name().startsWith("ore")) {
|| data.mPrefix == OrePrefixes.oreNetherrack || data.mPrefix == OrePrefixes.oreRedgranite) {
int data_getAllMaterialStacks_sS=data.getAllMaterialStacks().size(); int data_getAllMaterialStacks_sS=data.getAllMaterialStacks().size();
for (int i = 0; i < data_getAllMaterialStacks_sS; i++) { for (int i = 0; i < data_getAllMaterialStacks_sS; i++) {
issueAchievement(player, data.getAllMaterialStacks().get(i).mMaterial.name()); issueAchievement(player, data.getAllMaterialStacks().get(i).mMaterial.name());