Skip to content

Commit

Permalink
Make the EMI Server-Side component optional on Neoforge. (#452)
Browse files Browse the repository at this point in the history
Update to stable 1.20.4 Neoforge version.
  • Loading branch information
shartte authored Mar 5, 2024
1 parent 5dd26c4 commit a2dc760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ fabric_api_version=0.91.3+1.20.4

forge_version=1.20.4-49.0.9

neoforge_version=20.4.76-beta
neoforge_version=20.4.190

jei_version=jei-1.20.2-fabric:16.0.0.28
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class EmiPacketHandler {
private static final Identifier ID_CHESS_SERVERBOUND = new Identifier("emi", "chess_c2s");

public static void init(RegisterPayloadHandlerEvent event) {
var registrar = event.registrar("emi");
var registrar = event.registrar("emi").optional();

registrar.play(EmiNetwork.FILL_RECIPE, makeReader(EmiNetwork.FILL_RECIPE, FillRecipeC2SPacket::new), EmiPacketHandler::handleServerbound);
registrar.play(EmiNetwork.CREATE_ITEM, makeReader(EmiNetwork.CREATE_ITEM, CreateItemC2SPacket::new), EmiPacketHandler::handleServerbound);
Expand Down

0 comments on commit a2dc760

Please sign in to comment.