Fix Toolbox moving items into player armor slots

This commit is contained in:
reidbhuntley 2021-12-22 22:13:38 -05:00
parent 7791d340e1
commit 13b2e6dd6b

View File

@ -1,15 +1,17 @@
package com.simibubi.create.content.curiosities.toolbox; package com.simibubi.create.content.curiosities.toolbox;
import net.minecraft.world.Container; import net.minecraft.world.Container;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ItemStack;
import net.minecraftforge.items.wrapper.InvWrapper; import net.minecraftforge.items.wrapper.InvWrapper;
import net.minecraftforge.items.wrapper.PlayerMainInvWrapper;
/** /**
* For inserting items into a players' inventory anywhere except the hotbar * For inserting items into a players' inventory anywhere except the hotbar
*/ */
public class ItemReturnInvWrapper extends InvWrapper { public class ItemReturnInvWrapper extends PlayerMainInvWrapper {
public ItemReturnInvWrapper(Container inv) { public ItemReturnInvWrapper(Inventory inv) {
super(inv); super(inv);
} }