Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 75faba7fde
commit b3a8254758
619 changed files with 10708 additions and 8451 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/world/inventory/ContainerChest.java
+++ b/net/minecraft/world/inventory/ContainerChest.java
@@ -6,10 +6,39 @@
@@ -6,11 +6,40 @@
import net.minecraft.world.entity.player.PlayerInventory;
import net.minecraft.world.item.ItemStack;
@@ -12,8 +12,9 @@
+
public class ContainerChest extends Container {
private static final int SLOTS_PER_ROW = 9;
private final IInventory container;
private final int d;
private final int containerRows;
+ // CraftBukkit start
+ private CraftInventoryView bukkitEntity = null;
+ private PlayerInventory player;
@@ -40,9 +41,9 @@
private ContainerChest(Containers<?> containers, int i, PlayerInventory playerinventory, int j) {
this(containers, i, playerinventory, new InventorySubcontainer(9 * j), j);
@@ -55,6 +84,10 @@
@@ -56,6 +85,10 @@
iinventory.startOpen(playerinventory.player);
int k = (this.d - 4) * 18;
int k = (this.containerRows - 4) * 18;
+ // CraftBukkit start - Save player
+ this.player = playerinventory;
@@ -51,7 +52,7 @@
int l;
int i1;
@@ -78,6 +111,7 @@
@@ -79,6 +112,7 @@
@Override
public boolean canUse(EntityHuman entityhuman) {