From 21a3fedcd1f460dfc90893e6291f7cefba28dd3e Mon Sep 17 00:00:00 2001 From: pashabou Date: Tue, 23 Jul 2024 01:14:29 -0700 Subject: [PATCH] setItemToCraft (crash fix) Fixes GTNewHorizons/GT-New-Horizons-Modpack#16769 for change GTNewHorizons/Applied-Energistics-2-Unofficial#523 --- dependencies.gradle | 2 +- .../java/com/glodblock/github/network/CPacketCraftRequest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dependencies.gradle b/dependencies.gradle index 294019a1c..33175916b 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -35,7 +35,7 @@ */ dependencies { api('com.github.GTNewHorizons:NotEnoughItems:2.6.14-GTNH:dev') - api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-412-GTNH:dev') + api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-414-GTNH-pre:dev") api('curse.maven:cofh-core-69162:2388751') api('com.github.GTNewHorizons:waila:1.8.1:dev') diff --git a/src/main/java/com/glodblock/github/network/CPacketCraftRequest.java b/src/main/java/com/glodblock/github/network/CPacketCraftRequest.java index 42d4f0ffb..00ae958d1 100644 --- a/src/main/java/com/glodblock/github/network/CPacketCraftRequest.java +++ b/src/main/java/com/glodblock/github/network/CPacketCraftRequest.java @@ -104,6 +104,7 @@ public IMessage onMessage(CPacketCraftRequest message, MessageContext ctx) { } if (player.openContainer instanceof final ContainerCraftConfirm ccc) { + ccc.setItemToCraft(cca.getItemToCraft()); ccc.setAutoStart(message.heldShift); ccc.setJob(futureJob); cca.detectAndSendChanges();