setItemToCraft (crash fix) (#219)

Fixes GTNewHorizons/GT-New-Horizons-Modpack#16769 for change GTNewHorizons/Applied-Energistics-2-Unofficial#523

Co-authored-by: Martin Robertz <dream-master@gmx.net>
This commit is contained in:
Pasha BouzarjomehriandMartin Robertz authored and GitHub committed 2024-08-04 19:04:58 +07:00
1 parent e983a5e87c
commit 6f05a1dd42
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@
*/
dependencies {
api('com.github.GTNewHorizons:NotEnoughItems:2.6.19-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-421-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-423-GTNH:dev')
api('curse.maven:cofh-core-69162:2388751')
api('com.github.GTNewHorizons:waila:1.8.1:dev')
@@ -104,6 +104,7 @@ public class CPacketCraftRequest implements IMessage {
}
if (player.openContainer instanceof final ContainerCraftConfirm ccc) {
ccc.setItemToCraft(cca.getItemToCraft());
ccc.setAutoStart(message.heldShift);
ccc.setJob(futureJob);
cca.detectAndSendChanges();