Skip to content

Robot dupes ic2 seed bags #3236

@repo-alt

Description

@repo-alt

Illustrations here:
GTNewHorizons/GT-New-Horizons-Modpack#5657

The reason is that ic2 crop seed onItemUse tries to set
entityplayer.inventory.mainInventory[entityplayer.inventory.currentItem] = null;
but for the robot entityplayer.inventory.currentItem is not set (probably due to tool belt/main inventory distinction)

I understand that direct access to the player inventory is not a good idea on ic2 side but it is somehow unlikely that they will fix it, so, do you have any idea how to circumvent it on OC side? Because all I can think of is another hack in li.cil.oc.server.agent.Player.activateBlockOrUseItem

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross_modOC not working with another mod

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions