Update to 21w06a

This commit is contained in:
shedaniel
2021-02-11 21:45:52 +08:00
parent 7eb6a7b4e7
commit 7c7c28d909
7 changed files with 13 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ public final class ItemStackHooks {
}
public static void giveItem(ServerPlayer player, ItemStack stack) {
boolean bl = player.inventory.add(stack);
boolean bl = player.getInventory().add(stack);
if (bl && stack.isEmpty()) {
stack.setCount(1);
ItemEntity entity = player.drop(stack, false);