@@ -189,19 +189,19 @@ public static class Server extends ObjectEnum<PacketType> {
189
189
* @deprecated Removed in 1.9
190
190
*/
191
191
@ Deprecated
192
- public static final PacketType MAP_CHUNK_BULK = new PacketType (PROTOCOL , SENDER , - 1 , - 1 , "MapChunkBulk" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
192
+ public static final PacketType MAP_CHUNK_BULK = new PacketType (PROTOCOL , SENDER , 255 , 255 , "MapChunkBulk" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
193
193
194
194
/**
195
195
* @deprecated Removed in 1.9
196
196
*/
197
197
@ Deprecated
198
- public static final PacketType SET_COMPRESSION = new PacketType (PROTOCOL , SENDER , - 1 , - 1 , "SetCompression" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
198
+ public static final PacketType SET_COMPRESSION = new PacketType (PROTOCOL , SENDER , 254 , 254 , "SetCompression" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
199
199
200
200
/**
201
201
* @deprecated Removed in 1.9
202
202
*/
203
203
@ Deprecated
204
- public static final PacketType UPDATE_ENTITY_NBT = new PacketType (PROTOCOL , SENDER , - 1 , - 1 , "UpdateEntityNBT" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
204
+ public static final PacketType UPDATE_ENTITY_NBT = new PacketType (PROTOCOL , SENDER , 253 , 253 , "UpdateEntityNBT" ).deprecatedIn (MinecraftVersion .COMBAT_UPDATE );
205
205
206
206
// ----- Renamed packets
207
207
@@ -235,7 +235,8 @@ public static class Server extends ObjectEnum<PacketType> {
235
235
* @deprecated Replaced by {@link TILE_ENTITY_DATA}
236
236
*/
237
237
@ Deprecated
238
- public static final PacketType UPDATE_SIGN = getUpdateSign ();
238
+ public static final PacketType UPDATE_SIGN = MinecraftReflection .signUpdateExists () ? new PacketType (PROTOCOL , SENDER , 252 , 252 , "UpdateSign" ) :
239
+ TILE_ENTITY_DATA .deprecated ();
239
240
240
241
private final static Server INSTANCE = new Server ();
241
242
@@ -248,11 +249,6 @@ public static Sender getSender() {
248
249
public static Server getInstance () {
249
250
return INSTANCE ;
250
251
}
251
-
252
- private static PacketType getUpdateSign () {
253
- PacketType type = new PacketType (PROTOCOL , SENDER , -1 , -1 , "UpdateSign" );
254
- return type .getPacketClass () != null ? type : UPDATE_ENTITY_NBT .deprecated ();
255
- }
256
252
}
257
253
258
254
/**
0 commit comments