Skip to content

Commit

Permalink
fix(legacy): block resoucepack exploit (#4197)
Browse files Browse the repository at this point in the history
Closes: #4111
  • Loading branch information
EclipsesDev authored Oct 19, 2024
1 parent 495657a commit ed41332
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ private void handleResourcePack(final S48PacketResourcePackSend p_handleResource
} catch (final URISyntaxException e) {
ClientUtils.INSTANCE.getLOGGER().error("Failed to handle resource pack", e);

// Accepted is always sent.
netManager.sendPacket(new C19PacketResourcePackStatus(hash, ACCEPTED));
// But we fail of course.
// We fail of course.
netManager.sendPacket(new C19PacketResourcePackStatus(hash, FAILED_DOWNLOAD));

callbackInfo.cancel();
Expand Down

0 comments on commit ed41332

Please sign in to comment.