From c73adc953366e6b101d8bc9bf37510a62ede2bf9 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Wed, 29 Feb 2012 21:44:11 -0600 Subject: [PATCH] Fixed AchievementTest.java --- src/test/java/org/bukkit/AchievementTest.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/bukkit/AchievementTest.java b/src/test/java/org/bukkit/AchievementTest.java index 3492821c5f..f2e4d0601d 100644 --- a/src/test/java/org/bukkit/AchievementTest.java +++ b/src/test/java/org/bukkit/AchievementTest.java @@ -6,8 +6,8 @@ import static org.junit.Assert.assertThat; import java.util.List; +import net.minecraft.server.AchievementList; import net.minecraft.server.Statistic; -import net.minecraft.server.StatisticList; import org.bukkit.support.Util; import org.junit.Test; @@ -20,12 +20,8 @@ public class AchievementTest { public void verifyMapping() throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException { List achievements = Lists.newArrayList(Achievement.values()); - for (Statistic statistic : (List) StatisticList.b) { + for (net.minecraft.server.Achievement statistic : (List) AchievementList.e) { int id = statistic.e; - String hash = statistic.g; - - if ((id & Achievement.STATISTIC_OFFSET) != Achievement.STATISTIC_OFFSET) continue; - if (hash == null) continue; String name = Util.getInternalState(Statistic.class, statistic, "a"); String message = String.format("org.bukkit.Achievement is missing id: %d named: '%s'", id - Achievement.STATISTIC_OFFSET, name);