Skip to content

Commit

Permalink
hotfix porting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 18, 2024
1 parent 1e9ba08 commit c59f2fc
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,16 @@ public IItemHandler getItemHandlerCap(Direction direction)
{
lastItemHandlerCap = new CombinedItemHandler(RACK, getInventory());
}

if (type != RackType.EMPTY)
{
lastItemHandlerCap = new CombinedItemHandler(RACK, getInventory(), other.getInventory());
}
else
{
lastItemHandlerCap = new CombinedItemHandler(RACK, other.getInventory(), getInventory());
if (type != RackType.EMPTY)
{
lastItemHandlerCap = new CombinedItemHandler(RACK, getInventory(), other.getInventory());
}
else
{
lastItemHandlerCap = new CombinedItemHandler(RACK, other.getInventory(), getInventory());
}
}

return lastItemHandlerCap;
Expand Down

0 comments on commit c59f2fc

Please sign in to comment.