summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-02-29 21:44:11 -0600
committerEvilSeph <evilseph@gmail.com>2012-03-01 01:01:16 -0500
commitc73adc953366e6b101d8bc9bf37510a62ede2bf9 (patch)
tree839901ad5f9b2923f764ed85bf8c61b0b1e54abf /src/test
parent33ba9f0a2f56bdba89574d25b44905af95480dbe (diff)
downloadcraftbukkit-c73adc953366e6b101d8bc9bf37510a62ede2bf9.tar
craftbukkit-c73adc953366e6b101d8bc9bf37510a62ede2bf9.tar.gz
craftbukkit-c73adc953366e6b101d8bc9bf37510a62ede2bf9.tar.lz
craftbukkit-c73adc953366e6b101d8bc9bf37510a62ede2bf9.tar.xz
craftbukkit-c73adc953366e6b101d8bc9bf37510a62ede2bf9.zip
Fixed AchievementTest.java
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/bukkit/AchievementTest.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/java/org/bukkit/AchievementTest.java b/src/test/java/org/bukkit/AchievementTest.java
index 3492821c..f2e4d060 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<Achievement> achievements = Lists.newArrayList(Achievement.values());
- for (Statistic statistic : (List<Statistic>) StatisticList.b) {
+ for (net.minecraft.server.Achievement statistic : (List<net.minecraft.server.Achievement>) 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);