mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 12:51:09 -05:00
Add OVERPOWERED achievement.
This commit is contained in:
parent
4ed72deb75
commit
da5591b4fe
3 changed files with 4 additions and 8 deletions
|
@ -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");
|
||||
|
|
|
@ -33,6 +33,7 @@ public enum Achievement implements Statistic {
|
|||
SPAWN_WITHER,
|
||||
KILL_WITHER,
|
||||
MAKE_FULL_BEACON,
|
||||
EXPLORE_ALL_BIOMES;
|
||||
EXPLORE_ALL_BIOMES,
|
||||
OVERPOWERED;
|
||||
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue