Give ore Achievements from all ore stone types

This commit is contained in:
Blood-Asp 2016-10-17 00:03:05 +02:00
parent a50a5a1527
commit 5a52b80ee7

View file

@ -496,8 +496,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.mName); issueAchievement(player, data.getAllMaterialStacks().get(i).mMaterial.mName);