From ae8ba16a7e2163f981cf13ff9eb4263377fcb3a1 Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Sun, 22 Mar 2015 15:38:14 -0400 Subject: [PATCH] PlayerDigType is the second enum in the packet Fixes #62 --- .../java/com/comphenix/protocol/events/PacketContainer.java | 2 -- .../main/java/com/comphenix/protocol/wrappers/EnumWrappers.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java index 0743c9d2..d020e9c5 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -537,10 +537,8 @@ public class PacketContainer implements Serializable { * This modifier will automatically marshall between the visible ProtocolLib ChunkPosition and the * internal Minecraft ChunkPosition. * - * @deprecated ChunkPosition no longer exists. * @return A modifier for ChunkPosition list fields. */ - @Deprecated public StructureModifier> getPositionCollectionModifier() { // Convert to and from the ProtocolLib wrapper return structureModifier.withType( diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java index d37263a7..8b2b3051 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java @@ -281,7 +281,7 @@ public abstract class EnumWrappers { TITLE_ACTION_CLASS = getEnum(PacketType.Play.Server.TITLE.getPacketClass(), 0); WORLD_BORDER_ACTION_CLASS = getEnum(PacketType.Play.Server.WORLD_BORDER.getPacketClass(), 0); COMBAT_EVENT_TYPE_CLASS = getEnum(PacketType.Play.Server.COMBAT_EVENT.getPacketClass(), 0); - PLAYER_DIG_TYPE_CLASS = getEnum(PacketType.Play.Client.BLOCK_DIG.getPacketClass(), 0); + PLAYER_DIG_TYPE_CLASS = getEnum(PacketType.Play.Client.BLOCK_DIG.getPacketClass(), 1); PLAYER_ACTION_CLASS = getEnum(PacketType.Play.Client.ENTITY_ACTION.getPacketClass(), 0); SCOREBOARD_ACTION_CLASS = getEnum(PacketType.Play.Server.SCOREBOARD_SCORE.getPacketClass(), 0); PARTICLE_CLASS = getEnum(PacketType.Play.Server.WORLD_PARTICLES.getPacketClass(), 0);