mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Fix Toolbox moving items into player armor slots
This commit is contained in:
parent
7791d340e1
commit
13b2e6dd6b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user