1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-02-07 03:10:16 +00:00

Add invisible slots to computer GUIs

This ensures inventory slots are synced while the container is open,
meaning the hotbar (which is visible underneath the GUI) correctly
updates.

Fixes #915
This commit is contained in:
Jonathan Coates
2021-09-19 11:18:24 +01:00
parent b17ab16e05
commit 2aa70b49c1
8 changed files with 94 additions and 13 deletions

View File

@@ -237,7 +237,7 @@ public final class CommandComputerCraft
@Override
public Container createMenu( int id, @Nonnull PlayerInventory player, @Nonnull PlayerEntity entity )
{
return new ContainerViewComputer( id, computer );
return new ContainerViewComputer( id, player, computer );
}
} );
return 1;