Skip to content

Commit

Permalink
setItemToCraft (crash fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashabou committed Jul 23, 2024
1 parent 386884c commit 21a3fed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 21a3fed

Please sign in to comment.