Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setItemToCraft (crash fix) #40

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
dependencies {
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-412-GTNH:dev")

api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-433-GTNH:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.6.14-GTNH:dev")

implementation("com.github.GTNewHorizons:Baubles:1.0.4:dev")
implementation("com.github.GTNewHorizons:WirelessCraftingTerminal:1.11.2:dev")
implementation("com.github.GTNewHorizons:WirelessCraftingTerminal:1.11.3-pre:dev")

compileOnly("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.3.16-gtnh:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:Avaritiaddons:1.7.1-GTNH:dev") { transitive = false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ private void handlerCraftingTermRequest(ContainerCraftingTerm container, PacketC
Platform.openGUI(player, te, container.getOpenContext().getSide(), GuiBridge.GUI_CRAFTING_CONFIRM);
if (player.openContainer instanceof ContainerCraftConfirm) {
final ContainerCraftConfirm ccc = (ContainerCraftConfirm) player.openContainer;
ccc.setItemToCraft(message.getRequireToCraftStack());
ccc.setJob(futureJob);
ccc.setAutoStart(message.isAutoStart());
}
Expand Down Expand Up @@ -232,6 +233,7 @@ private void handlerCraftingAmountRequest(ContainerCraftingAmount container, Pac
NEEGuiHandler.openGui(player, NEEGuiHandler.CRAFTING_CONFIRM_ID, te, context.getSide());
if (player.openContainer instanceof ContainerCraftingConfirm) {
final ContainerCraftingConfirm ccc = (ContainerCraftingConfirm) player.openContainer;
ccc.setItemToCraft(result);
ccc.setAutoStart(message.isAutoStart());
ccc.setJob(futureJob);
ccc.setTile(pair.getLeft());
Expand All @@ -244,6 +246,7 @@ private void handlerCraftingAmountRequest(ContainerCraftingAmount container, Pac

if (player.openContainer instanceof WCTContainerCraftingConfirm) {
final WCTContainerCraftingConfirm ccc = (WCTContainerCraftingConfirm) player.openContainer;
ccc.setItemToCraft(result);
ccc.setJob(futureJob);
ccc.setAutoStart(message.isAutoStart());
ccc.setTile(pair.getLeft());
Expand Down Expand Up @@ -289,6 +292,7 @@ private void handlerWirelessCraftingRequest(ContainerWirelessCraftingTerminal co

if (player.openContainer instanceof net.p455w0rd.wirelesscraftingterminal.common.container.ContainerCraftConfirm) {
final net.p455w0rd.wirelesscraftingterminal.common.container.ContainerCraftConfirm ccc = (net.p455w0rd.wirelesscraftingterminal.common.container.ContainerCraftConfirm) player.openContainer;
ccc.setItemToCraft(message.getRequireToCraftStack());
ccc.setJob(futureJob);
ccc.setAutoStart(message.isAutoStart());
}
Expand Down
Loading