Fix J6 compile error in IItemHandler PR.

This commit is contained in:
LexManos 2016-01-23 22:52:32 -08:00
parent 5257739d06
commit 01919e4eed
1 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,8 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import java.lang.ref.WeakReference;
import java.util.Objects;
import com.google.common.base.Objects;
public class VanillaDoubleChestItemHandler extends WeakReference<TileEntityChest> implements IItemHandler
{
@ -123,9 +124,9 @@ public class VanillaDoubleChestItemHandler extends WeakReference<TileEntityChest
final TileEntityChest otherChest = getOtherChest();
if (mainChestIsUpper == that.mainChestIsUpper)
return Objects.equals(mainChest, that.mainChest) && Objects.equals(otherChest, that.getOtherChest());
return Objects.equal(mainChest, that.mainChest) && Objects.equal(otherChest, that.getOtherChest());
else
return Objects.equals(mainChest, that.getOtherChest()) && Objects.equals(otherChest, that.mainChest);
return Objects.equal(mainChest, that.getOtherChest()) && Objects.equal(otherChest, that.mainChest);
}
@Override