Skip to content

Commit

Permalink
Merge pull request #140 from 56738/spigot-1.20.2
Browse files Browse the repository at this point in the history
Fix CraftBukkitFacet on 1.20.2
  • Loading branch information
Machine-Maker authored Sep 29, 2023
2 parents afeeea4 + 39327a4 commit d0f67da
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 d0f67da

Please sign in to comment.