mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-21 20:42:22 +00:00
Fix GUI not returning when order crafting with no preview (#56)
This commit is contained in:
1 parent
6cb2842299
commit
f3447853ff
1 file changed
+4
-1
@@ -290,8 +290,11 @@ public class PacketCraftingRequest implements IMessage {
|
||||
openContainerCraftConfirm(grid, requireToCraftStack, player, baseContainer.getActionSource(), job -> {
|
||||
final ContainerOpenContext openContext = baseContainer.getOpenContext();
|
||||
Platform.openGUI(player, openContext.getTile(), openContext.getSide(), GuiBridge.GUI_CRAFTING_CONFIRM);
|
||||
});
|
||||
|
||||
if (player.openContainer instanceof ContainerCraftConfirm ccc) {
|
||||
ccc.setPrimaryGui(baseContainer.getPrimaryGui());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Optional.Method(modid = ModIDs.ThE)
|
||||
|
||||
Reference in new issue
Block a user