Fixes #2611: Limit the adaptor to the main player inv. (#3188)

This prevents the result from various inventory actions to be placed into
the offhand or armor slots.
This commit is contained in:
yueh 2017-10-31 14:05:05 +01:00 committed by GitHub
parent e2a6cd1d57
commit 725fa491e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ package appeng.util.inv;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.wrapper.PlayerInvWrapper;
import net.minecraftforge.items.wrapper.PlayerMainInvWrapper;
import appeng.util.Platform;
@ -30,7 +30,7 @@ public class AdaptorItemHandlerPlayerInv extends AdaptorItemHandler
{
public AdaptorItemHandlerPlayerInv( final EntityPlayer playerInv )
{
super( new PlayerInvWrapper( playerInv.inventory ) );
super( new PlayerMainInvWrapper( playerInv.inventory ) );
}
/**