mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
Update to 21w06a
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user