Add OVERPOWERED achievement.

This commit is contained in:
Steven Smith 2016-03-11 16:58:41 -08:00
parent 4ed72deb75
commit da5591b4fe
3 changed files with 4 additions and 8 deletions

View file

@ -543,6 +543,7 @@ public class MagicValues {
register(Achievement.KILL_WITHER, "achievement.killWither");
register(Achievement.MAKE_FULL_BEACON, "achievement.fullBeacon");
register(Achievement.EXPLORE_ALL_BIOMES, "achievement.exploreAllBiomes");
register(Achievement.OVERPOWERED, "achievement.overpowered");
register(GenericStatistic.TIMES_LEFT_GAME, "stat.leaveGame");
register(GenericStatistic.MINUTES_PLAYED, "stat.playOneMinute");

View file

@ -33,6 +33,7 @@ public enum Achievement implements Statistic {
SPAWN_WITHER,
KILL_WITHER,
MAKE_FULL_BEACON,
EXPLORE_ALL_BIOMES;
EXPLORE_ALL_BIOMES,
OVERPOWERED;
}

View file

@ -59,13 +59,7 @@ public class ServerPlayEffectPacket implements Packet {
@Override
public void read(NetInput in) throws IOException {
int id = in.readInt();
if(id >= 2000) {
this.effect = MagicValues.key(ParticleEffect.class, id);
} else {
this.effect = MagicValues.key(SoundEffect.class, id);
}
this.effect = MagicValues.key(WorldEffect.class, in.readInt());
this.position = NetUtil.readPosition(in);
int value = in.readInt();
if(this.effect == SoundEffect.RECORD) {