mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-10-25 20:32:19 +00:00
Fix crafting gui open in non-hand slot (#58)
This commit is contained in:
1 parent
af290593f5
commit
939621606b
1 file changed
+6
-1
@@ -289,7 +289,12 @@ 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);
|
||||
Platform.openGUI(
|
||||
player,
|
||||
openContext.getTile(),
|
||||
openContext.getSide(),
|
||||
GuiBridge.GUI_CRAFTING_CONFIRM,
|
||||
baseContainer.getTargetSlotIndex());
|
||||
|
||||
if (player.openContainer instanceof ContainerCraftConfirm ccc) {
|
||||
ccc.setPrimaryGui(baseContainer.createPrimaryGui());
|
||||
|
||||
Reference in new issue
Block a user