Skip to content

Commit

Permalink
chore: Disable packet handler entirely
Browse files Browse the repository at this point in the history
There's no Recipe Viewer integration in 1.16.5 at the moment
  • Loading branch information
null2264 committed Jan 8, 2024
1 parent 6e83906 commit c9f5e20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public static boolean handlePacket(ClientPacketListener listener, ClientboundCus
//$$ @SuppressWarnings("UnstableApiUsage")
//$$ public static boolean handlePacket(ClientCommonPacketListenerImpl listener, CustomPacketPayload packet) {
//#endif
// FIXME: Enable REI integration
//#if MC<=1.16.5
//$$ return false;
//#endif

//#if MC>=1.20.2
//$$ if (!(packet instanceof PacketByteBufPayload)) return false;
//$$ ResourceLocation id = ((PacketByteBufPayload) packet).id();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public static boolean handlePacket(ServerGamePacketListenerImpl listener, Server
//$$ @SuppressWarnings("UnstableApiUsage")
//$$ public static boolean handlePacket(ServerCommonPacketListenerImpl listener, CustomPacketPayload packet) {
//#endif
// FIXME: Enable REI integration
//#if MC<=1.16.5
//$$ return false;
//#endif

//#if MC>=1.20.2
//$$ if (!(packet instanceof PacketByteBufPayload)) return false;
//$$ ResourceLocation id = ((PacketByteBufPayload) packet).id();
Expand Down

0 comments on commit c9f5e20

Please sign in to comment.