Skip to content

Commit

Permalink
Mark packets as handled after handling them
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Mar 11, 2019
1 parent 22bd38e commit 1471057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/mezz/jei/network/PacketHandler.java
Expand Up @@ -48,5 +48,6 @@ public void onPacket(NetworkEvent.ClientCustomPayloadEvent event) {
} catch (RuntimeException e) {
LOGGER.error("Packet error for event: {}", event, e);
}
event.getSource().get().setPacketHandled(true);
}
}
1 change: 1 addition & 0 deletions src/main/java/mezz/jei/network/PacketHandlerClient.java
Expand Up @@ -38,5 +38,6 @@ public void onPacket(NetworkEvent.ServerCustomPayloadEvent event) {
} catch (Exception e) {
LOGGER.error("Packet error", e);
}
event.getSource().get().setPacketHandled(true);
}
}

0 comments on commit 1471057

Please sign in to comment.