mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-24 14:06:42 +01:00
Fix Toolbox moving items into player armor slots
This commit is contained in:
parent
7791d340e1
commit
13b2e6dd6b
1 changed files with 4 additions and 2 deletions
|
@ -1,15 +1,17 @@
|
|||
package com.simibubi.create.content.curiosities.toolbox;
|
||||
|
||||
import net.minecraft.world.Container;
|
||||
import net.minecraft.world.entity.player.Inventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraftforge.items.wrapper.InvWrapper;
|
||||
import net.minecraftforge.items.wrapper.PlayerMainInvWrapper;
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue