Skip to content

Commit

Permalink
Fix CraftBukkitFacet on 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
56738 committed Sep 27, 2023
1 parent afeeea4 commit 39327a4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ public boolean isSupported() {
}
}
}
final Class<?> serverCommonPacketListenerImpl = findClass(findMcClassName("server.network.ServerCommonPacketListenerImpl"));
if (serverCommonPacketListenerImpl != null) {
playerConnectionClass = serverCommonPacketListenerImpl;
}
playerConnectionSendPacket = searchMethod(playerConnectionClass, Modifier.PUBLIC, new String[]{"sendPacket", "send"}, void.class, packetClass);
} catch (final Throwable error) {
logError(error, "Failed to initialize CraftBukkit sendPacket");
Expand Down

0 comments on commit 39327a4

Please sign in to comment.