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

Merge branch 'mc-1.16.x' into mc-1.18.x

This commit is contained in:
Jonathan Coates
2022-10-30 08:49:52 +00:00
72 changed files with 1710 additions and 753 deletions

View File

@@ -35,6 +35,7 @@ import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import javax.annotation.Nonnull;
@@ -224,7 +225,7 @@ public final class CommandComputerCraft
.executes( context -> {
ServerPlayer player = context.getSource().getPlayerOrException();
ServerComputer computer = getComputerArgument( context, "computer" );
new ComputerContainerData( computer ).open( player, new MenuProvider()
new ComputerContainerData( computer, ItemStack.EMPTY ).open( player, new MenuProvider()
{
@Nonnull
@Override