File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/main/java/com/comphenix/protocol/wrappers Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1133,8 +1133,7 @@ public PotionEffectType getSpecific(Object generic) {
1133
1133
private static MethodAccessor idFromDimension = null ;
1134
1134
1135
1135
public static EquivalentConverter <Integer > getDimensionIDConverter () {
1136
- return new EquivalentConverter <Integer >() {
1137
-
1136
+ return ignoreNull (new EquivalentConverter <Integer >() {
1138
1137
@ Override
1139
1138
public Object getGeneric (Integer specific ) {
1140
1139
if (dimensionFromId == null ) {
@@ -1149,7 +1148,7 @@ public Object getGeneric(Integer specific) {
1149
1148
dimensionFromId = Accessors .getMethodAccessor (reflection .getMethod (contract ));
1150
1149
}
1151
1150
1152
- return dimensionFromId .invoke (null , ( int ) specific );
1151
+ return dimensionFromId .invoke (null , specific );
1153
1152
}
1154
1153
1155
1154
@ Override
@@ -1173,6 +1172,6 @@ public Integer getSpecific(Object generic) {
1173
1172
public Class <Integer > getSpecificType () {
1174
1173
return Integer .class ;
1175
1174
}
1176
- };
1175
+ }) ;
1177
1176
}
1178
1177
}
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ private static void initialize() {
422
422
SOUND_CATEGORY_CLASS = getEnum (PacketType .Play .Server .CUSTOM_SOUND_EFFECT .getPacketClass (), 0 );
423
423
ITEM_SLOT_CLASS = getEnum (PacketType .Play .Server .ENTITY_EQUIPMENT .getPacketClass (), 0 );
424
424
HAND_CLASS = getEnum (PacketType .Play .Client .USE_ENTITY .getPacketClass (), 1 );
425
- DIRECTION_CLASS = getEnum (PacketType .Play .Client . USE_ITEM .getPacketClass (), 0 );
425
+ DIRECTION_CLASS = getEnum (PacketType .Play .Server . SPAWN_ENTITY_PAINTING .getPacketClass (), 0 );
426
426
CHAT_TYPE_CLASS = getEnum (PacketType .Play .Server .CHAT .getPacketClass (), 0 );
427
427
428
428
associate (PROTOCOL_CLASS , Protocol .class , getClientCommandConverter ());
You can’t perform that action at this time.
0 commit comments