From 725fa491e6a337e998323b81981b8f8321aa2f9d Mon Sep 17 00:00:00 2001 From: yueh Date: Tue, 31 Oct 2017 14:05:05 +0100 Subject: [PATCH] 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. --- .../java/appeng/util/inv/AdaptorItemHandlerPlayerInv.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/util/inv/AdaptorItemHandlerPlayerInv.java b/src/main/java/appeng/util/inv/AdaptorItemHandlerPlayerInv.java index fbffaaf3..df8a5aac 100644 --- a/src/main/java/appeng/util/inv/AdaptorItemHandlerPlayerInv.java +++ b/src/main/java/appeng/util/inv/AdaptorItemHandlerPlayerInv.java @@ -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 ) ); } /**