mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
y u no foreach
This commit is contained in:
parent
b746ec5d03
commit
d3150672f4
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ import java.util.Locale;
|
||||||
public class PlayerObtainEvents{
|
public class PlayerObtainEvents{
|
||||||
|
|
||||||
public static void checkAchievements(ItemStack gotten, EntityPlayer player, InitAchievements.Type type){
|
public static void checkAchievements(ItemStack gotten, EntityPlayer player, InitAchievements.Type type){
|
||||||
for(int i = 0; i < TheAchievements.values().length; i++){
|
for(TheAchievements ach : TheAchievements.values()){
|
||||||
TheAchievements ach = TheAchievements.values()[i];
|
|
||||||
if(ach.type == type){
|
if(ach.type == type){
|
||||||
if(gotten != null && ach.ach.theItemStack != null && gotten.getItem() == ach.ach.theItemStack.getItem()){
|
if(gotten != null && ach.ach.theItemStack != null && gotten.getItem() == ach.ach.theItemStack.getItem()){
|
||||||
if(gotten.getItemDamage() == ach.ach.theItemStack.getItemDamage()){
|
if(gotten.getItemDamage() == ach.ach.theItemStack.getItemDamage()){
|
||||||
|
|
Loading…
Reference in a new issue