mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-30 00:57:55 +00:00
Send terminal state with /computercraft view
This commit is contained in:
@@ -225,6 +225,7 @@ public final class CommandComputerCraft
|
|||||||
.executes( context -> {
|
.executes( context -> {
|
||||||
ServerPlayerEntity player = context.getSource().getPlayer();
|
ServerPlayerEntity player = context.getSource().getPlayer();
|
||||||
ServerComputer computer = getComputerArgument( context, "computer" );
|
ServerComputer computer = getComputerArgument( context, "computer" );
|
||||||
|
computer.sendTerminalState( player );
|
||||||
ViewComputerContainerData container = new ViewComputerContainerData( computer );
|
ViewComputerContainerData container = new ViewComputerContainerData( computer );
|
||||||
container.open( player, new ExtendedScreenHandlerFactory()
|
container.open( player, new ExtendedScreenHandlerFactory()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user